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')