3
0

Reword password not secure error message in auth_actions.yaml

This commit is contained in:
Katrin Yordanova 2022-10-24 18:08:20 +03:00 committed by Tomaž Jerman
parent f6266fb3d5
commit 79ac014eb7
4 changed files with 4 additions and 4 deletions

View File

@ -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{

View File

@ -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) {

View File

@ -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"),

View File

@ -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"