Fixing auto-generation of usernames when email was already taken. Since (username) is empty on that point the following query never returned…
Show more
Fixing auto-generation of usernames when email was already taken. Since (username) is empty on that point the following query never returned any rows and xxx-2 was always created, so it failed if xxx-2 was already existing.
Show less