Back

How to setup forgot password.

  • 0
  • Users
  • Flutter
  • Accounts
frankenstein
18 Feb, 2023, 17:32

I'm currently struggling to setup forgot password in my flutter app. It requires the use of deep linking and universal which are still tough to setup. Can someone give a procedure of implementing forgot password. Anyone who has completed implementing it pls share code

TL;DR
User is asking for help in implementing forgot password functionality in their Flutter app. They are specifically asking for assistance in setting up deep linking and universal linking. Solution: Unfortunately, there is no specific solution provided in the thread. However, the user is advised to seek help from a Flutter Discord server or other online resources for more assistance in implementing deep linking. It is also suggested that someone who has successfully implemented the functionality share their code with the user.
Drake
18 Feb, 2023, 17:40

Are you asking about how to implement this outside of a flutter mobile app because it's difficult to do it in app?

frankenstein
18 Feb, 2023, 17:43

How to implement it in general is difficult

frankenstein
18 Feb, 2023, 17:44

So anyone who can explain the steps

frankenstein
18 Feb, 2023, 17:45

Or anyone who has the code can show us

Drake
18 Feb, 2023, 17:50

Deep linking isn't really specific to Appwrite so you might find more resources in a flutter discord server or maybe some other online resource

frankenstein
18 Feb, 2023, 17:54

import 'package:appwrite/appwrite.dart';

void main() { // Init SDK Client client = Client(); Account account = Account(client);

client .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createRecovery( email: 'email@example.com', url: 'https://example.com', );

result .then((response) { print(response); }).catchError((error) { print(error.response); }); }

frankenstein
18 Feb, 2023, 17:55

What url do we add to this function

Drake
18 Feb, 2023, 17:56

The url that would send the user back to your app

frankenstein
18 Feb, 2023, 17:58

Let's my domain is www.frank.com I'll set my deep link to catch this url to send user back to my app right.?

frankenstein
18 Feb, 2023, 17:59

import 'package:appwrite/appwrite.dart';

void main() { // Init SDK Client client = Client(); Account account = Account(client);

client .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateRecovery( userId: '[USER_ID]', secret: '[SECRET]', password: 'password', passwordAgain: 'password', );

result .then((response) { print(response); }).catchError((error) { print(error.response); }); }

Drake
18 Feb, 2023, 18:01

Yes

frankenstein
20 Feb, 2023, 12:23

What about the secret.?

frankenstein
20 Feb, 2023, 12:24

How do I get it to my second function

Drake
20 Feb, 2023, 15:21

The secret will be in the query string of the url

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