Invalid credentials throw an internal server error #1

Closed
opened 2023-11-01 13:02:31 +02:00 by slaesvuo · 1 comment
Owner

When passing an invalid email and password pair the backend returns 401 unauthorized which the frontend doesn’t handle, returning an internal server error page to the user. Instead the frontend should setMessage to tell the user that the credentials were wrong and redirect them back to the login page.

When passing an invalid email and password pair the backend returns 401 unauthorized which the frontend doesn't handle, returning an internal server error page to the user. Instead the frontend should `setMessage` to tell the user that the credentials were wrong and redirect them back to the login page.
slaesvuo added the
Type
Bug
Component/Frontend
labels 2023-11-01 13:02:31 +02:00
slaesvuo added the
Resolution
Done
label 2023-11-01 19:55:29 +02:00
Author
Owner
Fixed in [e5dc50195f058822d8b68312e7609a403189091c](https://git.datat.fi/ry/datarekisteri/commit/e5dc50195f058822d8b68312e7609a403189091c).
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ry/datarekisteri#1
No description provided.