-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Add must-change-password
cli parameter
#27626
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
Changes from 5 commits
3a08cc3
77e2e23
7977a72
dab43ff
2b0145d
6b75f97
ea0e975
908e69e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -95,6 +95,7 @@ Admin operations: | |||||||||
- Options: | ||||||||||
- `--username value`, `-u value`: Username. Required. | ||||||||||
- `--password value`, `-p value`: New password. Required. | ||||||||||
- `--must-change-password`: If provided, the user is required to choose a new password after the login. Optional. (default: true). | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
The I think everyone could understand that Or just follow the wording above, like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there any other suggestion? If no, could I commit this suggestion and approve? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The suggestion sounds good There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed the wording. Now the default is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, but I think if it defaults to true, then it might needs some new wording. (the old one makes me think for quite a long time to understand what is "optional" and what is "default: true" ....) Maybe like this?
Anyway, no better idea from my side. Either is fine to me. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I just used the wording from here: gitea/docs/content/administration/command-line.en-us.md Lines 86 to 87 in 360b3fd
Maybe we should have a common format for optional and required parameters. |
||||||||||
- Examples: | ||||||||||
- `gitea admin user change-password --username myname --password asecurepassword` | ||||||||||
- `must-change-password`: | ||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.