Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.2
-
Fix Version/s: 3.2
-
Component/s: Authentication
-
Labels:
-
Testing Instructions:
- 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.
-
Affected Branches:MOODLE_32_STABLE
-
Fixed Branches:MOODLE_32_STABLE
-
Pull from Repository:
-
Pull Master Branch:MASTER_
MDL-53306 -
Pull Master Diff URL:
Description
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; |
|
}
|