diff --git a/apps/users/api/user.py b/apps/users/api/user.py index ee45eec05..3087658e2 100644 --- a/apps/users/api/user.py +++ b/apps/users/api/user.py @@ -120,7 +120,7 @@ class UserResetPKApi(UserQuerysetMixin, generics.UpdateAPIView): def perform_update(self, serializer): from ..utils import send_reset_ssh_key_mail user = self.get_object() - user.is_public_key_valid = False + user.public_key = None user.save() send_reset_ssh_key_mail(user) diff --git a/apps/users/views/login.py b/apps/users/views/login.py index 5efea1318..52a721374 100644 --- a/apps/users/views/login.py +++ b/apps/users/views/login.py @@ -142,7 +142,6 @@ class UserFirstLoginView(PermissionsMixin, SessionWizardView): if field.value(): setattr(user, field.name, field.value()) user.is_first_login = False - user.is_public_key_valid = True user.save() context = { 'user_guide_url': settings.USER_GUIDE_URL