From 4c4f1dfd25a2b361e64a1788cb07c5b36ff07b7e Mon Sep 17 00:00:00 2001 From: Katrin Yordanova Date: Mon, 24 Oct 2022 18:08:20 +0300 Subject: [PATCH] Reword password not secure error message in auth_actions.yaml --- auth/handlers/handle_change-password_test.go | 2 +- auth/handlers/handle_signup_test.go | 2 +- system/service/auth_actions.gen.go | 2 +- system/service/auth_actions.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 5af903a4c..41cd1e2e7 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 a41a00da6..b97c1ce02 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"