diff --git a/auth/handlers/handle_change-password_test.go b/auth/handlers/handle_change-password_test.go index b03b86458..46da50b97 100644 --- a/auth/handlers/handle_change-password_test.go +++ b/auth/handlers/handle_change-password_test.go @@ -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{ diff --git a/auth/handlers/handle_signup_test.go b/auth/handlers/handle_signup_test.go index 306ae0b54..befbbc163 100644 --- a/auth/handlers/handle_signup_test.go +++ b/auth/handlers/handle_signup_test.go @@ -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) { diff --git a/system/service/auth_actions.gen.go b/system/service/auth_actions.gen.go index bd3318c0d..81e3e4e95 100644 --- a/system/service/auth_actions.gen.go +++ b/system/service/auth_actions.gen.go @@ -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"), diff --git a/system/service/auth_actions.yaml b/system/service/auth_actions.yaml index 8d2aba862..997be65e8 100644 --- a/system/service/auth_actions.yaml +++ b/system/service/auth_actions.yaml @@ -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"