Commit Graph

6 Commits

Author SHA1 Message Date
Nancy Butler 96e26af768 focus user name field 2021-08-03 10:49:13 -07:00
Richard Cox bbf07851ca Fix create/edit user when global roles are unavailable
- For instance with --features=multi-cluster-management=false
2021-07-13 18:00:41 +01:00
Richard Cox 80d07c7113 Tweaks/Fixes
- 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
2021-07-06 15:09:34 +01:00
Richard Cox 4afb75ed25 Ensure edits to a user's details and password are both saved correctly
- 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
2021-04-01 16:00:03 +01:00
Richard Cox 8d067de9b5 Ensure new users are requested to change password
- 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
2021-03-29 13:24:29 +01:00
Richard Cox 7d355462df User - List (actions), Create, Clone, Edit, Details
- Update Users list with actions
- Add User create/edit page
- Add User details page
- Brought over user/principal global role validation from ember world
2021-02-24 11:07:02 +00:00