mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-06-14 12:06:06 +00:00
feat: Allow underscores and hyphens in account name
This commit is contained in:
@ -35,7 +35,7 @@ class Account(db.Model):
|
||||
|
||||
if self.name is not None:
|
||||
self.name = ''.join(c for c in self.name.lower()
|
||||
if c in "abcdefghijklmnopqrstuvwxyz0123456789")
|
||||
if c in "abcdefghijklmnopqrstuvwxyz0123456789_-")
|
||||
|
||||
def __repr__(self):
|
||||
return '<Account {0}r>'.format(self.name)
|
||||
|
Reference in New Issue
Block a user