-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin CLI create-user not honoring lack of must-change-password flag #6005
Comments
I think I have been bitten by this before, the simple workaround is to always set --must-change-password=false when you don't want that set. |
I thought I remembered that being a thing as well, but couldn't find it in the urfave docs. Thanks! At least there's a workaround for now, but I still think the flag should be changed to be more clear on how to use it vs what is default behavior. |
It is supposed to default to Edit: I think the naming is fine but the docs should be updated to show it defaults as true. |
See #4340 |
My only (admittedly nit-picky) issue with it would be that it's simply an extra step for an otherwise unused flag. It's fine that it defaults to
Since there is a way to toggle the flag and this process is following intended behavior, I will close this issue, however I still think it is a somewhat misleading flag. |
@jolheiser if there is suggestion for better name keeping current behavior (that by default user must change password) I would not mind changing it or adding other with opposite behavior. My initial thought on |
Hah, yes I agree. |
IMHO the issue is with the helpstring. If it would indicate it accepts options the behaviour is not so bad. |
Description
If the CLI is used to create a user, lack of the
must-change-password
flag would imply that the new user doesn't need to change their password, however that is not what happens.When creating a user via the CLI, the
must-change-password
flag loses meaning after the first user is created (presumably the admin)I think there are probably two options based on the "wanted" default behavior.
changePassword
tofalse
by default, as that will line up with the intended use of the flag.must-change-password
flag and optionally add a different flag with the opposite meaning. This would mean that users created via CLI would, by default, need to change their password, unless the new flag is applied.The text was updated successfully, but these errors were encountered: