System Information
-
Strapi Version: 4.11.4
-
Operating System: Windows 11
-
Database: Postgress
-
Node Version: 14.19.1
-
NPM Version: 6.14.16
-
Yarn Version:
I am having an issue when I try to log in with the wrong password or not confirmed account or blocked account I am getting 500 error as an internal server error instead of a message in response. but I can see an error on strapi console please can anyone give me fix for it i alos updated strapi version but still same old version strapi was 4.7.0
I have the same problem. Started with version 4.11.1.
Updating strapi to version 4.12.7 - did not help
Let me give it a try and see if I can reproduce the issue.
Just tested in the latest version, both cases work and get appropriate messages.
I get the correct errors.When using wrong password I get:
{
"data": null,
"error": {
"status": 400,
"name": "ValidationError",
"message": "Invalid identifier or password",
"details": {}
}
}
When ‘blocked’ I get this error:
{
"data": null,
"error": {
"status": 400,
"name": "ApplicationError",
"message": "Your account has been blocked by an administrator",
"details": {}
}
}