Beispiel #1
0
        public static SystemUser Authenticate(string username, string password)
        {
            password = string.IsNullOrWhiteSpace(password) ? string.Empty : SystemUser.Base64Encode(password);
            var result = ModelContext
                         .GetInstance()
                         .systemUsers
                         .FirstOrDefault(x => x.username == username && x.password == password);

            return((SystemUser)result);
        }