public static void create_admin_user(Guid applicationId) { UsersController.create_admin_user(applicationId); }
public static List <UserGroup> get_user_groups(Guid applicationId) { return(UsersController.get_user_groups(applicationId, new List <Guid>())); }
public static bool is_invited(Guid applicationId, string email) { return(UsersController.get_invitation_id(applicationId, email, false).HasValue); }
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)); }
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)); }
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)); }