<html><body><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000"><div>Hello, <br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>I'm using LDAP to authenticate users to our system. Out IT-dept hammers on the fact that we need to use the email-address of users to login. <br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>The login works ok, but when I want to change the settings for a certain user, it complains about a '@' in the user name.A simple patch during docker build solved this issue. <br></div><div><br data-mce-bogus="1"></div><div>Since email addresses are used regularly for logging in, maybe this can be also in the next version of Kallithea. <br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Simply said : just adding @ to the regexp for username does the job. <br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>--- validators.py 2023-02-21 10:25:27.657212999 +0000<br>+++ validators_new.py 2023-02-21 10:26:40.560218089 +0000<br>@@ -92,7 +92,7 @@<br> msg = self.message('username_exists', state, username=value)<br> raise formencode.Invalid(msg, value, state)<br> <br>- if re.match(r'^[a-zA-Z0-9\_]{1}[a-zA-Z0-9\-\_\.]*$', value) is None:<br>+ if re.match(r'^[a-zA-Z0-9\_]{1}[a-zA-Z0-9\-\_\.@]*$', value) is None:<br> msg = self.message('invalid_username', state)<br> raise formencode.Invalid(msg, value, state)<br> return _validator<br><br data-mce-bogus="1"></div><div>Cheers, <br data-mce-bogus="1"></div><div>Stefaan<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>BTW : this is the best package I encountered since bitbucket stopped with Hg. <br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div></div></body></html>