Contents

This page comes from an earlier version of the Openproject docs (commit 3e6c0258). See the latest Openproject docs.

Pasword expiry

Background:

  • Given there is a user named "bob"
  • And I am already admin

Scenario: An admin activating password expiry forces a user to change the password

  • When I set passwords to expire after 30 days
  • And I try to log in with user "bob"
  • Then I should see "Bob Bobbit" as being logged in
  • When the time is 31 days later
  • And I try to log in with user "bob"
  • Then I should not see "Bob Bobbit" as being logged in
  • And there should be a flash error message
  • When I fill out the change password form
  • Then there should be a flash notice message
  • And I should see "Bob Bobbit" as being logged in

Scenario: An admin deactivating password expiry allows a user to login

  • When I set passwords to expire after 0 days
  • And I try to log in with user "bob"
  • Then I should see "Bob Bobbit" as being logged in
  • When the time is 31 days later
  • And I try to log in with user "bob"
  • Then I should see "Bob Bobbit" as being logged in

Source: features/users/password_expiry.feature at commit 3e6c0258, Openproject (GPL license).