Back

[Solved] Unauthorized on password change

  • 0
  • Accounts
ideclon
22 Nov, 2023, 08:27

If you reset the password from the Console to something simple, then try again with that new one you've set?

TL;DR
User is experiencing an unauthorized issue when trying to change their password. They have tried resetting the password in the console but it still fails. They are confused about an error message mentioning an email. Solution: Reset the password from the console to a simple one and try again with the new password.
fafa
22 Nov, 2023, 08:27

One moment

fafa
22 Nov, 2023, 08:28

also fails

ideclon
22 Nov, 2023, 08:28

Resetting in the Console fails, or trying the same thing as above still fails?

fafa
22 Nov, 2023, 08:29

i reset it in the console in the auth tab for the user, and tried changing the password again

ideclon
22 Nov, 2023, 08:30

And just to be sure, the Request in the Network tab shows exactly what you expect it to?

fafa
22 Nov, 2023, 08:31

The payload is correct (according to the docs..) but the preview says this:

TypeScript
{
    "message": "Invalid credentials. Please check the email and password.",
    "code": 401,
    "type": "user_invalid_credentials",
    "version": "1.4.13"
}

I don't understand why it says "please check the "email" and the password.", here's no email here

fafa
22 Nov, 2023, 08:31

oooh

fafa
22 Nov, 2023, 08:31

capital P?

fafa
22 Nov, 2023, 08:32

i got it

fafa
22 Nov, 2023, 08:32

holy shit, what a sad thing to do haha

ideclon
22 Nov, 2023, 08:33

Typo in the password?

fafa
22 Nov, 2023, 08:33

No, typo in oldpassword -> oldPassword

ideclon
22 Nov, 2023, 08:33

Re email, I guess check you're signed in with the correct user?

ideclon
22 Nov, 2023, 08:34

Ohh, I see

fafa
22 Nov, 2023, 08:34

how it should be

fafa
22 Nov, 2023, 08:34

how it was

ideclon
22 Nov, 2023, 08:34

Yep, camelCase

ideclon
22 Nov, 2023, 08:34

I think that's the case everywhere in Appwrite

fafa
22 Nov, 2023, 08:34

haha, well thanks anyway. May I ask for something else as well regarding JWT tokens?

ideclon
22 Nov, 2023, 08:35

Probably because of PHP

ideclon
22 Nov, 2023, 08:36

If your issue has been solved, you can close this post by adding “[SOLVED]” to the beginning of the title

ideclon
22 Nov, 2023, 08:36

Core might get annoyed about reusing <#1072905050399191082> channels... If it's not a Support issue (just a quick question), I'd say go for <#564160731327758347>

fafa
22 Nov, 2023, 08:37

I'll make a new thread :)

fafa
22 Nov, 2023, 08:37

[Solved] Unauthorized on password change

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more