From 92f708f9063e813e2fc7d038e90e8a032befa7cb Mon Sep 17 00:00:00 2001 From: rizwanisready Date: Tue, 2 Apr 2024 16:48:16 +0530 Subject: [PATCH] removed registration_complete from forgot password --- accounts/api/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/accounts/api/views.py b/accounts/api/views.py index f8b323a..89bfad1 100644 --- a/accounts/api/views.py +++ b/accounts/api/views.py @@ -270,7 +270,7 @@ class RegistrationPasswordView(APIView): return ApiResponse.error(**error_response) try: principal = serializer.save() - principal.register_complete = True + # principal.register_complete = True principal.save() except Exception as e: error_response = { @@ -448,6 +448,8 @@ class LoginView(APIView): otp_instance.is_used = True otp_instance.save() + principal.email_verified = True + principal.save() return self._login_success(principal) @@ -465,7 +467,7 @@ class LoginView(APIView): def _login_success(self, principal): try: - principal.email_verified = True + # principal.email_verified = True principal.last_login = timezone.localtime(timezone.now()) principal.save() except Exception as e: