To recreate:
- Create a new company company1
- Setup company1 with user Jack, password abcdef
- Set company1 Settings -> Defaults -> password duration to 400 days
- Change Preferences -> Password to something else. This is required to get the new 400 days active.
- Logout of Company1
- Create a new company2 using
setup.pl
- Select Jack as a user for company2 using the existing user Jack
- Logout of company2
- Wait for more than 1 day
- Try to login to company1 and fail because the the password expired
The symptom:
- To resolve set a new password for user jack using
setup.pl
- Login the company1
- Go to Preferences -> Preferences and see the message that your password expires in 1 day
- Go to Settings -> Defaults -> password duration and see that it is set for 400 days.
- Wonder why if it is set for 400 days it just expired. Exposed UI logic bug.
The problem:
- The UI for Settings -> Defaults -> password duration is wrong when the users is setup from another company. I understand it is because there is only 1 user for both companies.
Solutions:
- Maybe there is a way to use the same user in setup.pl for a new company without resetting the password that needs to be documented.
- When the 2nd company is created and the users is set back to 1 day password expiration maybe the 1st company needs to have the defaults reset.
- Maybe when using an existing user for the 2nd company we should not reset the password details at all.
I think 3 is the correct answer, but maybe there are details I don't understand.
To recreate:
setup.plThe symptom:
setup.plThe problem:
Solutions:
I think 3 is the correct answer, but maybe there are details I don't understand.