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
- [Sites] Deployment finished but site is ...
The deployment finished and is active but the site shows timeout error.
- Build failed
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
- Other DateTime Columns Are Saved Incorre...
When opening a row’s details from the console and editing any field, the timestamps of other DateTime columns are being automatically changed and incorrectly sa...