mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-14 14:29:21 +00:00
perf: 修改命令command input 长度问题 (#7996)
* perf: 修改命令command input max_length 1024 * perf: 修改命令command input 长度问题 * perf: 修改命令command input 长度问题 * perf: 修改命令command input 长度问题 * perf: 修改命令command input 长度问题 Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
This commit is contained in:
@@ -401,10 +401,12 @@ class RoleMixin:
|
||||
def is_staff(self, value):
|
||||
pass
|
||||
|
||||
service_account_email_suffix = '@local.domain'
|
||||
|
||||
@classmethod
|
||||
def create_service_account(cls, name, comment):
|
||||
def create_service_account(cls, name, email, comment):
|
||||
app = cls.objects.create(
|
||||
username=name, name=name, email='{}@local.domain'.format(name),
|
||||
username=name, name=name, email=email,
|
||||
comment=comment, is_first_login=False,
|
||||
created_by='System', is_service_account=True,
|
||||
)
|
||||
|
Reference in New Issue
Block a user