add GroupnameOption
This commit is contained in:
parent
74e604478e
commit
15669372db
@ -29,4 +29,10 @@ class UsernameOption(RegexpOption):
|
||||
#regexp build with 'man 8 adduser' informations
|
||||
_regexp = re.compile(r"^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$")
|
||||
_type = 'username'
|
||||
_display_name = _('username')
|
||||
_display_name = _('unix username')
|
||||
|
||||
|
||||
class GroupnameOption(UsernameOption):
|
||||
__slots__ = tuple()
|
||||
_type = 'groupname'
|
||||
_display_name = _('unix groupname')
|
||||
|
Loading…
Reference in New Issue
Block a user