コード例 #1
0
        public static Account VerifyAccountHashed(string login, string passwordHash)
        {
            if (string.IsNullOrEmpty(login) || string.IsNullOrEmpty(passwordHash))
            {
                return(null);
            }
            var db  = new ZkDataContext();
            var acc = Account.AccountVerify(db, login, passwordHash);

            return(acc);
        }
コード例 #2
0
        public static Account VerifyAccountHashed(string login, string passwordHash)
        {
            if (string.IsNullOrEmpty(login) || string.IsNullOrEmpty(passwordHash))
            {
                return(null);
            }
            var db = new ZkDataContext();

#if DEBUG
            var acc = db.Accounts.FirstOrDefault(x => x.Name == login && x.LobbyID != null);
#else
            var acc = Account.AccountVerify(db, login, passwordHash);
#endif

            if (acc != null || Debugger.IsAttached)
            {
                return(acc);
            }
            else
            {
                return(Global.Nightwatch.Auth.VerifyAccount(login, passwordHash));
            }
        }