8000 🐛 Bug Report: Error 500 using `updateEmail` when password is not set cause OAuth2 · Issue #4975 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content< 8000 /a>
🐛 Bug Report: Error 500 using updateEmail when password is not set cause OAuth2 #4975
Closed
@gepd

Description

@gepd

👟 Reproduction steps

  1. Authenticate with any OAuth2 provider
  2. try to update the email or phone using the updateEmail or updatePhone 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?

Metadata

Metadata

Labels

bugSomething isn't workinggood first issueGood for newcomersproduct / authFixes and upgrades for the Appwrite Auth / Users / Teams services.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0