Content
You are here:
No umlauts allowed in Username
Added by Hudri Wudri over 4 years ago
How can i allow umlauts in username. We're from Austria and have umlauts in usernames. The corresponding ldap user also has an umlaut 'Müller'. The workaround now is that i have an internal user for her with 'Mueller' but the problem is we change our password's every 30 days so she always has the old password for openproject. Thanks for your help.
Best regards,
Martin
Replies (3)
Hi Martin,
this validation prevents other characters from login: https://github.com/opf/openproject/blob/dev/app/models/user.rb#L126
I assume this stems from the login being used in other remote services, but there is no intrinsic requirement in openproject to prohibit umlauts. You can patch OpenProject to remove this line.
Best
Oliver
Good Morning,
thanks for your reply. Which file does the form validation when a user is created? I can't test the modification of user.rb, because i am not able to create an user with an umlaut in the username.
Best regards
Martin
I did a workaround. Altered the username directly on database to bypass form validation.