mirror of https://github.com/jumpserver/jumpserver
[Update] 修改用户名校验规则
parent
cde2e7adb0
commit
4ed9e11090
|
@ -4,4 +4,4 @@ from django.core.validators import RegexValidator
|
|||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
|
||||
alphanumeric = RegexValidator(r'^[0-9a-zA-Z_-]*$', _('Special char not allowed'))
|
||||
alphanumeric = RegexValidator(r'^[0-9a-zA-Z_@\-\.]*$', _('Special char not allowed'))
|
Loading…
Reference in New Issue