diff --git a/juser/views.py b/juser/views.py index 21174962d..6802616fb 100644 --- a/juser/views.py +++ b/juser/views.py @@ -58,7 +58,7 @@ def user_list(request): def db_add_user(**kwargs): user = User(**kwargs) group_select = [] - for group_id in groups: + for group_id in kwargs.get('groups', None): group = UserGroup.objects.filter(id=group_id) group_select.extend(group) user.user_group = group_select diff --git a/templates/juser/user_add.html b/templates/juser/user_add.html index 5bd387430..7d571b859 100644 --- a/templates/juser/user_add.html +++ b/templates/juser/user_add.html @@ -50,7 +50,7 @@
- 登陆Jumpserver Terminal 使用SSH密钥的密码 + 登陆 Jumpserver 使用的SSH密钥的密码
@@ -62,13 +62,6 @@
-
- -
- -
-
-
@@ -105,6 +98,13 @@
+
+ +
+ +
+
+