Beispiel #1
0
        public ClaimsIdentity AuthenticateMemberByEmail(string emailAddress, string password)
        {
            var user = GetUsers().FirstOrDefault(x => x.EmailAddress == emailAddress);

            if (user == null)
            {
                return(null);
            }

            var authModel = modelFactory.CreateAuthenticateModel(user);

            return(AuthenticateMember(authModel));
        }