mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
ability for an admin to unlock a user from the users table by using the actions modal
This commit is contained in:
@@ -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 = '') {
|
||||
|
||||
Reference in New Issue
Block a user