
I creating a user session using Create Phone session but now user can able to add/update email from profile section.
Currently, Update Email method needs password to update email.
What do you suggest ? what should i here?

The best and fastest solution will be to create an Appwrite function, and let execute by Users only.
Within it the function you can use the Users
server SDK to set the email, for example
// Beginning the function code.
try {
const userId = req.variables.APPWRITE_FUNCTION_USER_ID ?? '';
const email = req.payload ?? '';
await users.updateEmail(userId, email);
} catch (e) {
}
// rest of the function code.

I dont get it how?

First you'll need to create Appwrite function. With that function parse the user ID and the user email that was send to you from the front end.
In your code, in the client side, after the user is logged in.
You can let the user input a new email address and send it to Appwrite using a function.
For that you'll use the createExecution
function
https://appwrite.io/docs/client/functions?sdk=web-default#functionsCreateExecution
To learn about functions in general, check these: https://appwrite.io/docs/functions https://appwrite.bool-code.org/guide/functions-module

So email will be store in auth users ?

With users.updateEmail
yes
It will be add to the user object in the Auth collection.

Alright! Thank You..

[Solved] Update Email without Password
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...
