Merge branch 'master' of gitlab.prodcontest.ru:team-15/project

This commit is contained in:
ITQ
2025-03-01 18:19:59 +03:00
33 changed files with 740 additions and 67 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ def sign_in(request, data: LoginSchema):
user = User.objects.filter(email=data.email).first()
if not user:
raise AuthenticationError
if user.password != data.password:
if not user.check_password(data.password):
raise AuthenticationError
token = BearerAuth.generate_jwt(user)