Field Description for Passwords Does not change When Changed in Account Settings
Closed this issue · 3 comments
If user changes value from the default one (12), this is no visible in the password description when creating new user from Accounts -> Users -> new user(see screenshot bellow), but is visible when changing account (top right corner).
Testflow:
- Login as kapua-sys
- Go to Accounts, create an account (e.g. acco0)
- Select acc0, go to Account settings, enter e.g. "13" int he min password length
- Try to add a new user (Account -> User -> add new user) - do not change accounts, stay on kapua-sys account
- Observe the number that is not changed from 12 to 13.
Expected behavior
Value in password description when creating new user from parent account should be changed.
Version of Kapua
https://github.com/lorthirk/kapua/tree/feature-configurablePasswordLength
Type of deployment
[ ] Local Vagrant deployment
[x] Docker
[ ] Openshift (in its variants)
[ ] Others
Main component affected
[x] Console (in case of console please report info on which browser you encountered the problem)
[ ] REST API -> did not try rest api!!! -> please check!
[ ] Message Broker
[ ] - Others
Additional context
Add any other context about the problem here.
Hey @lorthirk, this is visible only when you try to create a user from parent account, so let's say:
- you login as kapua-sys and go to Accounts
- Create new account (e.g. 123)
- Select account 123, go to Account Settings
- Set infinite Child Users to True
- Go to CredentialService and set min password length to e.g. 20
- Now go to Users tab (when account 123 selected) and try to create new user
-
in this dialogue box you can see that the "12" is not changed:
Ok so I have found out what happens here.
If you create accounts like this:
- kapua-sys (root account)
| -> account0 (subaccount of kapua-sys, has min password length of e.g. 123)
| -> account0_1 (subaccount of account0, has min password length of e.g. 22)
If you want to create a user in account0_1 when you are in account0, the "New User" dialogue box will show "123" min password length instead of 22.
I hope this is a bit clearer. It looks like that when you are trying to create a user in Accounts -> Users -> Add, the min password value is somehow extracted from the parent account...
I have verifiec that this issue has been resolved.