Details
-
Type:
Sub-task
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.9
-
Fix Version/s: DEV backlog
-
Component/s: Authentication
-
Labels:
-
Affected Branches:MOODLE_19_STABLE
Description
When the code in auth/db/auth.php looks for users to revive, it seems to be looking for users in mdl_user who have a matching username to the external list, as well as deleted=1.
It finds none, since the username has been reset to email.timestamp and hence doesn't match.
I've made a patch to fix this, but I'm not sure how ideal it is.
This is a big problem at the moment for a Moodle integration I'm working on.
Attachments
Issue Links
| This issue is duplicated by: | ||||
| MDL-13162 | auth/db should reset email when undeleting users |
|
|
|
| This issue has a non-specific relationship to: | ||||
| MDL-13563 | Hiding but not deleting users who are suspended in LDAP |
|
|
|
| This issue has been marked as being related by: | ||||
| MDL-30718 | Method sync_users() @ "/auth/db/auth.php" does not register mdl_user->timecreated property. |
|
|
|
Patch to provide a fix for the undeletion bug.