-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Bug Report: Server SDK Create Recovery functionality does not mirror similar functions #3008
Comments
I could see how generating that secret and not sending the email can be useful. I don't think it should be in account api though because the account api is for doing stuff on behalf of a user. So perhaps a new endpoint in users api would make most sense. |
After discussion with
Actually I agree with that, probably more of a feature improvement than a bug. Looking the API in accounts.php, probably fairly easy to do this for users.. don't mind picking this up if no objections? |
👟 Reproduction steps
or
👍 Expected behavior
If calling the createRecovery endpoint from the server SDK, it should allow an API Key and NOT send an email to the user. This is to match similar functionality provided by the teams endpoints. If an membership is created from the server SDK, the server does NOT send an email and automatically adds the user to the team.
This proves useful if the developer is trying to develop a custom recovery flow, for example texting a recovery code to a phone number registered to the account or if the developer is trying to send a custom email.
👎 Actual Behavior
If called with an API key you get the following error and no email:
If called without a API Key, you'll get an email.
🎲 Appwrite version
Version 0.13.x
💻 Operating system
Windows
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: