Reword password not secure error message in auth_actions.yaml
This commit is contained in:
parent
f6266fb3d5
commit
79ac014eb7
@ -73,7 +73,7 @@ func Test_changePasswordProc(t *testing.T) {
|
||||
},
|
||||
{
|
||||
name: "provided password is not secure",
|
||||
payload: map[string]string{"error": "provided password is not secure; use longer password with more special characters"},
|
||||
payload: map[string]string{"error": "provided password is not secure; use longer password to follow the password policy"},
|
||||
link: GetLinks().ChangePassword,
|
||||
fn: func(_ *settings.Settings) {
|
||||
authService = &authServiceMocked{
|
||||
|
||||
@ -147,7 +147,7 @@ func Test_signupProc(t *testing.T) {
|
||||
err: "",
|
||||
alerts: []request.Alert(nil),
|
||||
link: GetLinks().Signup,
|
||||
payload: map[string]string{"email": "", "error": "provided password is not secure; use longer password with more special characters", "handle": "", "name": ""},
|
||||
payload: map[string]string{"email": "", "error": "provided password is not secure; use longer password to follow the password policy", "handle": "", "name": ""},
|
||||
fn: func(_ *settings.Settings) {
|
||||
authService = &authServiceMocked{
|
||||
internalSignUp: func(c context.Context, user *types.User, s string) (u *types.User, err error) {
|
||||
|
||||
2
system/service/auth_actions.gen.go
generated
2
system/service/auth_actions.gen.go
generated
@ -1282,7 +1282,7 @@ func AuthErrPasswordNotSecure(mm ...*authActionProps) *errors.Error {
|
||||
var e = errors.New(
|
||||
errors.KindInternal,
|
||||
|
||||
p.Format("provided password is not secure; use longer password with more special characters", nil),
|
||||
p.Format("provided password is not secure; use longer password to follow the password policy", nil),
|
||||
|
||||
errors.Meta("type", "passwordNotSecure"),
|
||||
errors.Meta("resource", "system:auth"),
|
||||
|
||||
@ -146,7 +146,7 @@ errors:
|
||||
message: "password create is disabled"
|
||||
|
||||
- error: passwordNotSecure
|
||||
message: "provided password is not secure; use longer password with more special characters"
|
||||
message: "provided password is not secure; use longer password to follow the password policy"
|
||||
|
||||
- error: externalDisabledByConfig
|
||||
message: "external authentication (using external authentication provider) is disabled"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user