You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("Password is not long enough. Needs to be at least %d", setting.MinPasswordLength)
68
+
returnfmt.Errorf("password is not long enough, needs to be at least %d characters", setting.MinPasswordLength)
73
69
caseerrors.Is(err, password.ErrComplexity):
74
-
returnerrors.New("Password does not meet complexity requirements")
70
+
returnerrors.New("password does not meet complexity requirements")
75
71
caseerrors.Is(err, password.ErrIsPwned):
76
-
returnerrors.New("The password you chose is on a list of stolen passwords previously exposed in public data breaches. Please try again with a different password.\nFor more details, see https://haveibeenpwned.com/Passwords")
72
+
returnerrors.New("the password is in a list of stolen passwords previously exposed in public data breaches, please try again with a different password, to see more details: https://haveibeenpwned.com/Passwords")
Copy file name to clipboardExpand all lines: docs/content/administration/command-line.en-us.md
+2-3
Original file line number
Diff line number
Diff line change
@@ -83,8 +83,7 @@ Admin operations:
83
83
-`--email value`: Email. Required.
84
84
-`--admin`: If provided, this makes the user an admin. Optional.
85
85
-`--access-token`: If provided, an access token will be created for the user. Optional. (default: false).
86
-
-`--must-change-password`: If provided, the created user will be required to choose a newer password after the
87
-
initial login. Optional. (default: true).
86
+
-`--must-change-password`: The created user will be required to set a new password after the initial login, default: true. It could be disabled by `--must-change-password=false`.
88
87
-`--random-password`: If provided, a randomly generated password will be used as the password of the created
89
88
user. The value of `--password` will be discarded. Optional.
90
89
-`--random-password-length`: If provided, it will be used to configure the length of the randomly generated
-`--password value`, `-p value`: New password. Required.
98
-
-`--must-change-password`: If provided, the user is required to choose a new password after the login. Optional.
97
+
-`--must-change-password`: The user is required to set a new password after the login, default: true. It could be disabled by `--must-change-password=false`.
99
98
- Examples:
100
99
-`gitea admin user change-password --username myname --password asecurepassword`
0 commit comments