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
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...