We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
user1@example.com
password1
user2@example.com
password2
/me
/me/password
userSchema.statics.findUserByEmailAndPassword
User.email
statusDeleted
crowi/lib/models/user.js
Line 242 in 56e8fe7
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Environment
How to reproduce? (再現手順)
user1@example.com
password1
user2@example.com
password2
user1@example.com
(logged in as user1) and modify credentials/me
and change e-mail touser2@example.com
/me/password
and change password topassword2
user2@example.com
andpassword2
pairWhat happens? (症状)
userSchema.statics.findUserByEmailAndPassword
picks the old oneWhat is the expected result? (期待される動作)
user2@example.com
Note
User.email
becomes unique,statusDeleted
method will be affectedcrowi/lib/models/user.js
Line 242 in 56e8fe7
The text was updated successfully, but these errors were encountered: