I am using flutter to develop. After calling the createVerification method, I received an email. Then I clicked on the email, but the user in the cloud.appwrite.io backend is still not verified. I don't know what to set。
final models.User user = await AppwriteService.instance.account.create(
userId: ID.unique(),
email: email,
password: password,
//name: name,
);
final session = await AppwriteService.instance.account
.createEmailPasswordSession(email: email, password: password);
// 发送验证邮件
await AppwriteService.instance.account.createVerification(
url: 'https://cloud.appwrite.io/',
);
is that right?
You need to set the URL to a page of your app (deep link) or to an external website (for example: https://authui.site) in order to complete the verification.
In the verification page, you will need to trigger
account.updateVerification(userId, secret); and specify there the user account and the secret that was in the URL
You have this as reference too: https://appwrite.io/docs/products/auth/email-password#verification
That means I need to write my own page that validates the user
Yes
Or use Authui, that is the link I sent, but the app will not be opened as it will be handled there
OK, thanks for your reply:appwritepeepo:
Recommended threads
- Getting current user has been blocked
Getting current user has been blocked error while signing in the appwrite console. Got this during I am testing with the my saas web project. Please help to unb...
- Android SDK: Kotlin null Value Not Updat...
Hi team, I think you should check the Android SDK implementation once, as it seems to have an issue handling Kotlin **null** values. For example: When I send:...
- Can't connect GitHub — 500 error at the ...
Appwrite Cloud, Pro plan, SFO region. All my Git connections vanished today — Sites and all 15 Functions now show no repository connected. When I try to add a ...