Closed ibestvina closed 3 months ago
I do not store passwords in the re-authentication cookie out of caution, therefore there is no way for the module to know that a password has been changed. The re-authentication cookie only stores the username and cookie expiry date, therefore I don't think there is any way for me to implement this. As a force majeure measure, if for whatever reason you need to force a user to log out, you can simply remove their credentials from the config.yaml file.
Thank you, I suspected this might be due to my wrong expectations. Great work btw!
Thank you, I suspected this might be due to my wrong expectations. Great work btw!
You're most welcome!
I assume this is working as intended, but I'd expect it to work differently. Please close the issue if this is the intended behavior.
I store login info (username and hashed passwords) in the database. I would expect that users who are already logged in, would be logged out automatically after their password is changed (making their cookie hash invalid), but this is not the case.
Here is a simple example of the code to reproduce this:
After starting the app, I log in with password
a
. I then change the password tob
in the code and refresh the app in the browser. I would expect thelogin_status
to switch back toFalse
, however it staysTrue
.