Closed
Description
👟 Reproduction steps
- Authenticate with any OAuth2 provider
- try to update the email or phone using the
updateEmail
orupdatePhone
endpoint
👍 Expected behavior
Update the email or phone without ask for a password, or use other method to confirm the changes
👎 Actual Behavior
We get an error
Unhandled Runtime Error
AppwriteException: Server Error
I have test it with updateEmail
and updatePhone
but this should happen in any endpoint who requires a password
the container logs shows the following error:
[Error] Method: PATCH
[Error] URL: /v1/account/phone
[Error] Type: TypeError
[Error] Message: Appwrite\Auth\Auth::passwordVerify(): Argument #2 ($hash) must be of type string, null given, called in /usr/src/code/app/controllers/api/account.php on line 1569
[Error] File: /usr/src/code/src/Appwrite/Auth/Auth.php
[Error] Line: 216
🎲 Appwrite version
Version 1.2.x
💻 Operating system
Linux
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct