You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will attempt to match the given email with the user’s email or username field, and will send them a password reset email. By doing this, you can opt to have users use their email as their username, or you can collect it separately and store it in the email field.
You are free to use an email address as the username. Simply ask your users to enter their email, but fill it in the username property — Parse.User will work as normal. We’ll go over how this is handled in the reset password section.
Email adapter have to handle username as an email in this case.
When the adapter got there user object as recipient and email filed of user is empty, use username as an email.
Thanks for opening this issue. That's an interesting behavior of Parse Server. I understand the intention of that behavior, but I am not sure it should be that way, because its an unclean approach in terms of data separation, and it creates a lot of issues down the road. It probably also breaks the email verification logic for that user. If the user has an email in the username field and a different email in the email field, it's unclear which email would be verified. So this looks much like a bug in Parse Server, which should be fixed.
If Parse Server currently behaves that way, and we decide to propagate the bug into this email adapter, we would need to consider the order of the fields checked, in case there are two different email addresses stored. Is it email || username or username || email?
In any case, it would be good if you could additionally open an issue in Parse Server about this.
🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
New Issue Checklist
Issue Description
Parse-server supports "users use their email as their username" :
On the resetting passwords section of parse-server JS SDK document,
On the signing up section,
Email adapter have to handle username as an email in this case.
When the adapter got there
user
object as recipient andemail
filed ofuser
is empty, useusername
as an email.Parse-server check below code of
parse-server
:If you want check the early discussion of this issue, please check this
Steps to reproduce
parse-server
with this email adapter.Actual Outcome
You can't not get any email.
Expected Outcome
You can get an "reset password email".
Failing Test Case / Pull Request
#54
Environment
2.10
4.10.4
Logs
The text was updated successfully, but these errors were encountered: