- Use new newUserSetPassword string
- Removed unused USERNAME query param definition
- Tidied up some boolean logic, removed need for lodash fn
- Fixed issue where if a user didn't reset their password (for example due to page refresh) they were stuck in a loop until session times out
- During these tweaks i broke some of the original logic, so fixed. Some of the changes are just different ways of doing the same thing given changes above
Unrelated to PR but whilst in the area...
- Ensure value of mustChangePassword is correct when editing a user
- Added error handling to step 1 of setup
- Setup password text suggests using random password, so start with that selected
- vertical position won't jiggle on toggling password type
- Previously we saved the steve user and then changed the norman users password
- This process lead to the user edits being lost
- This is partly due to
- some kind of race condition occurring between the two quick requests
- the setpassword request, in the api, sets mustChangePassword to false
- So now we..
- change the norman users password first
- wait 5 seconds (!!) - see https://github.com/rancher/rancher/issues/31883
- change the norman users details
- If this is enabled when user is created user should be prompted to change password
- Fix is to switch from Steve user create to Norman user create
- #2524
- Also fixes issue where description was not saved if there was no custom model
- Update Users list with actions
- Add User create/edit page
- Add User details page
- Brought over user/principal global role validation from ember world