Back

[SOLVED] Password recovery confirmation

  • 1
  • Flutter
  • Accounts
Disk_MTH
25 Sep, 2023, 19:35

Hello, I would like to know how to make the mail verification and password reset part work with Flutter (for 6 OS). I have already made this code which sends me a link by email, but when I click on it, I get a 404 error.

I understood from your documentation and an example found on the Web for javascript that overall the link was supposed to return to the app with "userId" and "secret" parameters which then allow me once the user has entered their new mdp to send the modification to the REST api, but I cannot do it in flutter (and even less mobile, web and desktop accounting). Do you have an example to provide, or just the lines missing from my understanding of the problem?

PS: my url in the email sent is "https://cloud.appwrite.io", but I really don't think that's correct. I saw that I could put "locahost" because it is one of the urls referenced by my project, but as long as I do not understand exactly what my problem is, I left it PS: I did not copy and paste the code for you because it is the documentation provided executed by my UI, if you want it I can provide it without problem. PS: I have already made a UI page for password confirmation, all I need is the logic to make it work ^^

Sincerely, Disk_MTH

TL;DR
User is seeking help with implementing mail verification and password reset functionality using Flutter. They have already written code that sends a verification link via email, but clicking on the link results in a 404 error. They are looking for guidance on how to handle the link in Flutter and extract the necessary parameters (userId and secret) for further processing. Solution: The user needs to implement deep linking in their Flutter app so that the URL in the email can be properly handled and extracted within the app. The link should not be set to "https://cloud.appwrite.io" but should be configured to link back to the Flutter app instead. An example
Drake
28 Sep, 2023, 00:22

You need to implement deep linking so that the URL in the email (which shouldn't be Appwrite Cloud) will link into the app where you can extract the secret and userid.

Disk_MTH
28 Sep, 2023, 20:21

[SOLVED] Password recovery confirmation

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