Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 1.9
-
Fix Version/s: None
-
Component/s: Authentication
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
moodle's delete_user function sets the email address to '' (used to be email || '.disabled') but in auth/db when users are undeleted it doesn't get reset. Not a huge problem as it'll get reset on next login (assuming the field is set to update on login as well as creation) but there could be try to email stuff to them in between account undeletion & email resetting on n ext login.
Linked task is related to same area, and the attached patch only needs a couple of lines of modification to fix this issue. set_user_preferences(...) can be used to store the email address as well as the username.