Ejemplo n.º 1
0
        public static PasswordFailure Add(string userName, Database db = null)
        {
            User            user    = User.GetByUserNameOrDie(userName, db);
            PasswordFailure failure = user.PasswordFailuresByUserId.AddNew();

            failure.DateTime = System.DateTime.UtcNow;
            failure.Save(db);
            return(failure);
        }
Ejemplo n.º 2
0
        public static string Get(string userName)
        {
            User user = User.GetByUserNameOrDie(userName);

            return(Get(user));
        }
Ejemplo n.º 3
0
        public static bool Validate(string userName, string password, bool updateFailure = true)
        {
            User user = User.GetByUserNameOrDie(userName);

            return(Validate(user, password, updateFailure: updateFailure));
        }
Ejemplo n.º 4
0
        public static Password Set(string userName, string password, Database db = null)
        {
            User user = User.GetByUserNameOrDie(userName, db);

            return(Set(user, password));
        }
Ejemplo n.º 5
0
        public static PasswordReset Last(string userName)
        {
            User user = User.GetByUserNameOrDie(userName);

            return(Last(user));
        }
Ejemplo n.º 6
0
        public static Session Get(string userName, Database db = null)
        {
            User user = User.GetByUserNameOrDie(userName, db);

            return(Get(user, db));
        }
Ejemplo n.º 7
0
        public static LockOut Last(string userName)
        {
            User user = User.GetByUserNameOrDie(userName);

            return(Last(user));
        }
Ejemplo n.º 8
0
 public static Login Add(string userName)
 {
     return(Add(User.GetByUserNameOrDie(userName)));
 }