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

Enhance password expiration message #16210

Merged

Conversation

cconard96
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -

When impersonating a user who has never had their password changed, and when the password expiration policy is set, the warning on the user's homepage says the password will expire in 1970. It also shows a debug error because 'password_last_update' is null and passing null to strtotime is deprecated. This PR prevents passing null to strtotime and also changes the message to "Your password has expired." when the expiration date has passed.

src/User.php Show resolved Hide resolved
src/Central.php Outdated Show resolved Hide resolved
src/User.php Outdated Show resolved Hide resolved
@trasher trasher requested a review from cedric-anne December 19, 2023 09:04
tests/functional/User.php Outdated Show resolved Hide resolved
@cedric-anne cedric-anne changed the title Enahnce password expiration message Enhance password expiration message Dec 19, 2023
src/User.php Outdated Show resolved Hide resolved
@cedric-anne cedric-anne force-pushed the enhance/password_exp_msg branch from ba8b4fd to 5564c15 Compare January 11, 2024 11:32
@cedric-anne cedric-anne added this to the 10.0.12 milestone Jan 11, 2024
@cedric-anne cedric-anne merged commit db2db6a into glpi-project:10.0/bugfixes Jan 11, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants