• Jérome Perrin's avatar
    authentication_event: fix password expiration · 943cda95
    Jérome Perrin authored
    Before this change, password event were only recorded when
    preferred_number_of_last_password_to_check was set.
    
    We also need to record password events to check for password lifetime,
    so also record password events when preferred_max_lifetime_duration is
    is set (also when set to 0h, but this only makes sense in tests).
    
    testAuthenticationPolicy was not showing this problem, because tests were not properly
    isolated and test_02_PasswordHistory was enabling
    preferred_number_of_last_password_to_check for all other tests.
    943cda95
afterChangePassword.py 975 Bytes