Bug: Error 500 on authorization
Summary
Error 500 when authorizing a registered user (closed bug report https://github.com/hexlet-codebattle/codebattle/issues/1982#issue-2564612654)
https://github.com/user-attachments/assets/ccf67edc-60f6-4004-8d02-c10cb02e0853
Reproduction steps
1. Open the page with user authorization on the site - https://codebattle.hexlet.io/session/new?locale=en&next=%2F.
2. Open DevTools
3. Select the Network tab
4. Click on Fetch/XHR
5. Enter the e-mail address of the logged in user
6. Enter password
7. Click Submit
Expected result
The user is logged in, the server has responded positively to the request
Actual result
The user is not logged in, the server responded with error 500 to the request
Сurrent version of the site: 1c3e2ba Google Chrome 129.0.6668.60 (Официальная сборка), (x86_64) MacOS Ventura 13.3.1
Browsers
Chrome
OS
Mac
Summary: Authorization via email doesn't work
Environment: Windows 11 Home 23H2 22631.4317 Google Chrome v130.0.6723.59 (64-bit) Firefox 131.0.3 (64-bit) Current site version: 1c3e2ba
Reproduction steps:
- Open website: https://codebattle.hexlet.io/
- Click on "Sign in" button
- Enter valid email and password in authorization form
- Click "Submit" button
Expected result: Authorization is successful, user is transfered to main page
Actual result: Authorization doesn't work, there is error 500(Internal Server Error) in the "Network" tab in DevTools
https://github.com/user-attachments/assets/3c44b22e-8c47-4cd7-b22c-98aedb711a28
Ошибка авторизации пользователя с существующими email и паролем
requirement: |
При правильном email или пароле пользователь должен войти в аккаунт
prerequisites:
Открыта страница логина
test-data: |
Email = [email protected] Password = password
environment: |
Google Chrome 126.0.6478.127 (Официальная сборка) (64 бит)
ОС Windows 11
steps:
Ввести Email
Ввести Password
Нажать кнопку «Submit»
expected-result: |
Пользователь должен попасть на главную страницу
actual-result: |
Пользователь не авторизован. Ошибка 500
Description: Windows 10, version Pro 22H2 Yandex browser version 24.10.3.814 (64-bit) Codebattle version bb44a99
Production steps:
- Open https://codebattle.hexlet.io/
- Click on the “Sign in” button
- Enter your email in the “Email” field
- Enter your password in the “Password” field
- Click the “Submit” button
- Open Devtools
Expected Result: User is authorized on the site by entering his login and password
Actual result: The user is unable to authorize to the site using login and password. An error appears in the Devtools console.