When registering an email with a + in the address, the registration gets stuck when setting a password after verifying the email address.
This is because of the setting:
Administration settings -> Registration -> User settings -> Force email as login name
Related: server#21313 Allowed characters in username/userid
Steps to reproduce
- open Nextcloud in browser
- click
Register
- Enter an email you own with a
+ character. E.g. [email protected] (GMail forwards mails to arbitrary prefixes behind a + for existing addresses)
- enter the verification code you got via mail
- try to set a passwort
Expected behaviour
Users should be able to register, regardless which characters their email addresses contain.
I guess the best solution in line with the Force email as login name policy would be to somehow automatically derive a valid username.
E.g. for [email protected] the + could be replaced with a _.
Just add a strategy for possible collisions. In case a user [email protected] and a user [email protected] register. (first the + and second the _, and also the other way around)
Actual behaviour
Only the following characters are allowed in a username: "a-z", "A-Z", "0-9", spaces and "_.@-'"
There's no input field to set another username.
There's only the password input field and a disabled input field which shows the registered email address.

Server configuration
Web server: Apache (all Debian-12 default software)
Nextcloud version: 28 and 29 tested
When registering an email with a
+in the address, the registration gets stuck when setting a password after verifying the email address.This is because of the setting:
Administration settings -> Registration -> User settings -> Force email as login nameRelated: server#21313 Allowed characters in username/userid
Steps to reproduce
Register+character. E.g.[email protected](GMail forwards mails to arbitrary prefixes behind a+for existing addresses)Expected behaviour
Users should be able to register, regardless which characters their email addresses contain.
I guess the best solution in line with the
Force email as login namepolicy would be to somehow automatically derive a valid username.E.g. for
[email protected]the+could be replaced with a_.Just add a strategy for possible collisions. In case a user
[email protected]and a user[email protected]register. (first the+and second the_, and also the other way around)Actual behaviour
Only the following characters are allowed in a username: "a-z", "A-Z", "0-9", spaces and "_.@-'"There's no input field to set another username.
There's only the password input field and a disabled input field which shows the registered email address.
Server configuration
Web server: Apache (all Debian-12 default software)
Nextcloud version: 28 and 29 tested