ability for an admin to unlock a user from the users table by using the actions modal

This commit is contained in:
HB9HIL
2025-01-19 09:44:54 +01:00
parent c4e7d3dd85
commit eed874f3eb
4 changed files with 86 additions and 10 deletions

View File

@@ -672,6 +672,12 @@ class User_Model extends CI_Model {
}
}
// FUNCTION: bool unlock($user_id)
// Unlocks a user account after it was locked doe too many failed login attempts
function unlock($user_id) {
return $this->db->query("UPDATE users SET login_attempts = 0 WHERE user_id = ?", [$user_id]);
}
// FUNCTION: object users()
// Returns a list of users with additional counts
function users($club = '') {