예제 #1
0
 public static void create_admin_user(Guid applicationId)
 {
     UsersController.create_admin_user(applicationId);
 }
예제 #2
0
 public static List <UserGroup> get_user_groups(Guid applicationId)
 {
     return(UsersController.get_user_groups(applicationId, new List <Guid>()));
 }
예제 #3
0
 public static bool is_invited(Guid applicationId, string email)
 {
     return(UsersController.get_invitation_id(applicationId, email, false).HasValue);
 }
예제 #4
0
        public static int login_attempt(Guid?applicationId, string username, bool succeed)
        {
            Guid?userId = UsersController.get_user_id(applicationId, username);

            return(!userId.HasValue ? 0 : DataProvider.LoginAttempt(userId.Value, succeed));
        }
예제 #5
0
        public static bool locked(Guid?applicationId, string username, ref User theUser)
        {
            Guid?userId = UsersController.get_user_id(applicationId, username);

            return(userId.HasValue && DataProvider.Locked(userId.Value, null, ref theUser));
        }
예제 #6
0
        public static Guid?get_pass_reset_ticket(Guid applicationId, string username)
        {
            Guid?userId = UsersController.get_user_id(applicationId, username);

            return(!userId.HasValue ? null : get_pass_reset_ticket(userId.Value));
        }