mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 08:40:00 +00:00
Fix username validator
Tehee, oops!
This commit is contained in:
parent
3f49f17baa
commit
b6ecad898d
|
@ -37,7 +37,7 @@ class Unique(object):
|
|||
|
||||
|
||||
_username_validator = Regexp(
|
||||
r'[a-zA-Z0-9_\-]+',
|
||||
r'^[a-zA-Z0-9_\-]+$',
|
||||
message='Your username must only consist of alphanumerics and _- (a-zA-Z0-9_-)')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue