fix: fixed bug in auth and me

This commit is contained in:
Андрей Сумин committed 2025-03-01 20:11:11 +03:00
1 parent 0fdc905562
commit c87bace839
2 files changed
+2 -3

No files matched your search

-1
View File
@@ -45,7 +45,6 @@ def sign_up(request, data: RegisterSchema):
)
def sign_in(request, data: LoginSchema):
user = User.objects.filter(email=data.email).first()
print(check_password(data.password, user.password))
if not user:
raise AuthenticationError
if not check_password(data.password, user.password):