[Update] 修改Perms

This commit is contained in:
ibuler
2018-04-11 11:34:15 +08:00
parent 0fa8287811
commit bbaa35c773
6 changed files with 151 additions and 85 deletions

View File

@@ -241,7 +241,7 @@ class User(AbstractUser):
def create_app_user(cls, name, comment):
app = cls.objects.create(
username=name, name=name, email='{}@local.domain'.format(name),
is_active=False, role='App', enable_otp=False, comment=comment,
is_active=False, role='App', comment=comment,
is_first_login=False, created_by='System'
)
access_key = app.create_access_key()