Skip to content
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

[fix] Fix has_password_expired when password_update is None #374

Merged
merged 1 commit into from Apr 3, 2024

Conversation

nemesifier
Copy link
Member

@nemesifier nemesifier commented Apr 2, 2024

The password_updated field can be None, so trying to perform an addition on it before ensuring the value is not None can lead to uncaught exceptions, this patch fixes this issue.

@nemesifier nemesifier added the bug label Apr 2, 2024
@nemesifier nemesifier self-assigned this Apr 2, 2024
@nemesifier nemesifier added this to In progress in OpenWISP Priorities for next releases via automation Apr 2, 2024
@nemesifier
Copy link
Member Author

The tests are failing because of [bug] Test test_password_expiration_mail is suddenly failing.

@coveralls
Copy link

Coverage Status

coverage: 97.923% (+0.06%) from 97.865%
when pulling 1f89b3f on fix-password-expired
into 444b1ac on master.

@nemesifier nemesifier merged commit 1a6bb59 into master Apr 3, 2024
20 checks passed
OpenWISP Priorities for next releases automation moved this from In progress to Done Apr 3, 2024
@nemesifier nemesifier deleted the fix-password-expired branch April 3, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants