-
Improvement
-
Resolution: Fixed
-
Minor
-
3.2
-
MOODLE_32_STABLE
-
MOODLE_32_STABLE
-
MASTER_
MDL-53306 -
- Apply patch file
- Enable display developer message
- Login as a user with auth plugin set to manual.
- Make sure debugging message appears when an existing user tries to login.
I would like to be able to revive suspended user inside my auth plugin. Right now there is no way for me to do so.
|
/**
|
* If a user account is suspended check if we need to revive the account.
|
* @param $user
|
* @return boolean
|
*/
|
public function revive_suspended_user($user) { |
|
if($this->user_exists($user->username) === true) { |
return true; |
}
|
|
return false; |
|
}
|