Skip to content
Snippets Groups Projects
Verified Commit a9ce8d83 authored by morre's avatar morre
Browse files

Allow dashes in usernames and mail adresses

parent 6e710457
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ def loginname_is_safe(value): ...@@ -78,7 +78,7 @@ def loginname_is_safe(value):
if len(value) > 32 or len(value) < 1: if len(value) > 32 or len(value) < 1:
return False return False
for char in value: for char in value:
if not char in string.ascii_lowercase + string.digits + '_': if not char in string.ascii_lowercase + string.digits + '_-':
return False return False
return True return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment