Beispiel #1
0
        public displaylogin LoginSystemUser(string email, string password)
        {
            var tuple        = _customDataAccess.LoginSystemUser(email);
            var passwordHash = tuple.Item2;

            if (true == PasswordHasher.VerifyHashedPassword(passwordHash, password))
            {
                return new displaylogin()
                       {
                           SystemUserID = tuple.Item1.SystemUserID, AccountTypeID = tuple.Item1.AccountTypeID
                       }
            }
            ;
            else
            {
                return new displaylogin()
                       {
                           SystemUserID = tuple.Item1.SystemUserID, AccountTypeID = tuple.Item1.AccountTypeID
                       }
            };
        }