Esempio n. 1
0
        public User Login(string email, string password)
        {
            DomainUser domainUser = GetDomainUserByEmail(email);

            if (domainUser != null && PasswordEncoder.CheckPassword(password, domainUser.Salt, domainUser.Password))
            {
                return(Mapper.Map <User>(domainUser));
            }

            return(null);
        }