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
- Update row sheet not loading
After right clicking a row header and click update, the sidebar fails to load (never-ending skeleton)
- Domain is already used. Please try again...
I have a website with where the www.domain.me This website works just fine But if I try to visit domain.me. I get this error. I keep getting sent to some app ri...
- Realtime api and labels as permission
in my tables i set labels as permission and real-time capabilities stopped working. Before when i was having "any" role everything was working. Note: user have...