
I have a user account and I am currently logged in, I am making a screen to change the user's email via a form and in order to change the email I need to get the current password of that user

@Ichigor The user has to enter the current password. You can't get it from appwrite.

Yes, you'd probably want to create a function to do that using the Users
api

For clarification, you mean OP would want to change the email address with the Users
API from a function

You still can’t get a user’s password with the Users
API.

Yes, but it can be accomplished by creating a temporal (dummy) account with the entered password and compare the hash to the password hash of the existing account. The password hash can be obtained via the Users api

That’s awful 😆

But OP isn’t trying to verify the password the user has entered. They’re trying to get the user’s password

Yes, but also understandable due to security reasons

No, I mean your workaround

My understanding from the original question is OP wants to verify the identity of the user before changing the email I've worked on apps with similar functionality. In fact, if that's the case it's just easier to use a function to try logging in with the supplied email and password then upon successful login effect the change

The change email function requires the current password already

Understandable, but I can't think of any other way of getting the password. The best one can get is the password hash

Oh ok then my bad 😅

It sounds like OP just wants the user to not have to enter the password when they want to change the email address on the account

It uses up your MAU limit (if you’re on Cloud)

Ok

@Ichigor You'd have to clarify things a bit

I think it’s just - there’s no way, just have the user enter their password

I agree

Just clocked why this statement was confusing to me. Op wants to change email and not password. It's not a forgot password problem but a change email problem.
Recommended threads
- Still an issue? On user deletion, target...
This has been mentioned here: https://discord.com/channels/564160730845151244/1295830646039515146 and as a Github issue here: https://github.com/appwrite/appwri...
- Appwrite database is rounding int values
Hi, i just noticed that appwrite is rounding the value 608542412536545279 to 608542412536545300 in my int array. It seems to somewhat relate to this github iss...
- OAuth fails with Invalid Response or inv...
Im currently trying to use the Discord Oauth but i cant find a way to make it work. I followed the docs and set up the discord oauth application and enabled it...
