From b25096925b7151a45812556b0f43b362a84ac110 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 19 Mar 2020 16:28:08 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20=E4=BF=AE=E5=A4=8D=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E5=B9=B6=E4=B8=8B=E8=BD=BDssh=20key=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/users/views/profile/pubkey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/users/views/profile/pubkey.py b/apps/users/views/profile/pubkey.py index 29b557232..52c149084 100644 --- a/apps/users/views/profile/pubkey.py +++ b/apps/users/views/profile/pubkey.py @@ -45,7 +45,7 @@ class UserPublicKeyGenerateView(PermissionsMixin, View): def get(self, request, *args, **kwargs): username = request.user.username - private, public = ssh_key_gen(username, hostname='jumpserver') + private, public = ssh_key_gen(username=username, hostname='jumpserver') request.user.public_key = public request.user.save() response = HttpResponse(private, content_type='text/plain')