- Strapi Version: 4.14.0
Hello guys,
I get a status code 400 (Bad Request) from the login api. What’s the problem here?
I’m asking for your help.
Thanks in advance!
http://localhost:1337/api/auth/local?identifier=tester01&password=123456
or
Hello guys,
I get a status code 400 (Bad Request) from the login api. What’s the problem here?
I’m asking for your help.
Thanks in advance!
http://localhost:1337/api/auth/local?identifier=tester01&password=123456
or
Addition:
I haven’t solved the problem yet, but I’ve made progress.
“node_modules@strapi\plugin-users-permissions\server\controllers\auth.js”
Why can’t he find the user?
DB:
Debug:
Setting:
did you change any of the code inside of the users&permissions?
Many thanks for the quick response!
Actually not! To debug I deleted my extensions. But I’ll create a new bare project to test for sure if the same issue comes up.
P.S.: I just created a new bare v4.14.0 project. - It worked. I’ll report back as soon as I find the cause. Thank you!
I know the issue. identiefier for users&permissions is the email not the username
@Boegie19 Thank you, I found out what was going on. ‘local’ must be entered into the database as ‘provider’.
But unfortunately I can’t find a field where I can enter ‘provider’. Is this a bug?
Thanks in advance!
field does not exist in the admin ui since you can’t create new users with it or change it.
Many thanks for the quick response!
My last question: When I create a new user via Admin, ‘provider’ has the value “null
”. Why is “null
” the default value here instead of “local
”?
That is a good question where I don’t know the answer for.
Maby it is even worth it to open a issue on github about this.
Good morning, that’s a good suggestion. I just reported the problem. Let’s see what the others write.