Back

Problem with updateEmail function

  • 1
  • Flutter
  • Cloud
Raman
1 Jul, 2024, 10:04

I am trying to update the email of a user and after doing that updateEmail the user is getting blocked for some reason

TL;DR
Developers are experiencing issues with the `updateEmail` function causing users to get blocked after trying to update their email. Please verify the `updateEmail` logic and ensure it is functioning properly. Check for any potential triggers that might be causing users to be blocked after the email update.
Raman
1 Jul, 2024, 10:05
TypeScript
Future<bool> updateEmail(String email, String password) async {
  try {
    await account.updateEmail(email: email, password: password);
    return true;
  } catch (e) {
    if (kDebugMode) {
      print(e);
    }
    return false;
  }

This is the function I am using for the updateEmail I am getting old email and password of the user

Raman
1 Jul, 2024, 10:05

and the user is getting blocked somehow

Raman
1 Jul, 2024, 10:09

Images:

Raman
1 Jul, 2024, 10:10

@D5 Can you take a look into this

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