Moodle

When user is deleted, the username is lost

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.6.7, 1.7.5, 1.8.5, 1.9.2
  • Fix Version/s: None
  • Component/s: Administration
  • Labels:
    None
  • Affected Branches:
    MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

Description

When a user is deleted, the deleted flag is set to 1, email and idnumber fields are emptied, whereas username field is replaced with the email address which has a seconds stamp added. Why is the email address saved in the username field? It would seem more logical that username is appended with a seconds stamp to make it unique. When users is undeleted, then one would need only to remove the seconds und clear the deleted flag. If email should be saved, then it should be kept in the email field with a seconds stamp appended, shouldn't it?

Issue Links

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Hi Robert,

I'm closing this in favour of MDL-16838, where this problem and possible solutions are being discussed with proposed patches and so on.

Thanks and ciao

Show
Eloy Lafuente (stronk7) added a comment - Hi Robert, I'm closing this in favour of MDL-16838, where this problem and possible solutions are being discussed with proposed patches and so on. Thanks and ciao

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: