Since most of my users log in using MagicUrl, I also hope that users can set a password after logging in so that they can log in with it in exceptional circumstances. Now, I want to check if the user has already set their password to determine whether to use the updatePassword or createRecovery and updateRecovery methods to set their password. How to check?
Supplement: The user has already logged in.
determine whether to use the updatePassword or createRecovery and updateRecovery methods
You should be able to use updatePassword even if they don't have a password. you can pass anything for the password param.
See https://appwrite.io/docs/client/account?sdk=web-default#accountUpdatePassword
I want to check if the user has already set their password
Try looking at the passwordUpdate attribute on the User.
Recommended threads
- I can't UNPAUSE my project with the free...
I received an email notifying me that my project had been paused due to inactivity, and the email included a link to "Restore project." However, that button red...
- How to bypass the rate limit on the back...
Once a month my app has a ton of usage and I always run into the Too many requests 429 error. I am trying to optimize the queues and jobs to manage that, but a...
- 401 - Project not accessible in this reg...
Hi Appwrite team, I’m experiencing a Cloud Console issue with my NYC region project. Problem: - Some Console pages return: “401 - Project is not accessible ...