Skip to content

Commit e903758

Browse files
committed
fix: revert signup existing user check from .has_usable_password to .password
1 parent e5daa4a commit e903758

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/auth/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def auth_signup_api(request) -> Response:
404404
return error_response or Response(
405405
{"error": "Failed to create user session"}, status=500
406406
)
407-
if user.has_usable_password():
407+
if user.password:
408408
return Response({"error": "User already exists with password."}, status=409)
409409

410410
user.is_active = True

0 commit comments

Comments
 (0)