-
-
Notifications
You must be signed in to change notification settings - Fork 509
Flash message after Reset Password page says "logged in automatically", but it isn't #813
Comments
This is a valid bug since automatic login was removed upon password reset. All it needs is a PR updating the text. Good opportunity for a first time PR. |
Hi there! I fixed this message in core.py and manually updated all of the translations as well but I'm unsure if that's the right approach for the latter. I tested the English version with an app I'm developing that utilizes Flask-Security and the message showed up correctly. I don't know how to use the translations so can't check those in a live environment. Does this sound okay for a pull request or should I do some additional work first? |
@deadlyraptor Thanks for following up! |
@kantorii Yes, I edited the *.po files. I used Google Translate since it was mostly a matter of cutting off the second part of the sentence ("...and you have been successfully logged in.") but there could easily be grammatical errors. I can only verify English and Spanish. English Spanish Japanese Let me know if there's anything else I can do on this one. |
@deadlyraptor The Japanese is ok. I have nothing more to say. I wonder if @jirikuncar has anything to say. |
* Update test_common.py Added testcase for failing toke-authentication on session-only endpoint * Update conftest.py Added session-only authenticated route to test-fixture * Update decorators.py Added the `_check_session` function to specifically check session data to be used as authentication_method in the `auth_required` * Update decorators.py * Update decorators.py * fixed decorator and added tests * Fix session-only authentication. If an endpoint was decorated with "session" only - a properly submitted token would also be accepted. Fix that by checking as part of the auth_required() decorator and the user is authenticated AND was authenticated using the _user_loader (which is what flask-login calls for session based authenticated). close pallets-eco#791 --------- Co-authored-by: N247S <fictiefverzonnen@gmail.com>
The default flash message after resetting the password is:
"You successfully reset your password and you have been logged in automatically."
However, in flask_security
The workaround is to define SECURITY_MSG_PASSWORD_RESET, but I'm not sure if all programmers will realize that.
The text was updated successfully, but these errors were encountered: