Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Password policy with error message

Avatar

Avatar
Validate 1
Level 1
johng23
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
johng23
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile
johng23
Level 1

13-06-2018

I would like to add a password policy with a descriptive error message in AEM 6.2.

So far, I've tried using the AuthorizableActionProvider which works to control password creation/change but the error message when a new password fails validation is hardcoded and not friendly or helpful ("ERROR: Something went wrong while changing the user's password").

I then tried using a Client Library using JavaScript as described here​​ but it does not work, possibly because this was written for 6.1 and the forms nodes changed.

Any pointers would be much appreciated.

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

13-06-2018

Avatar

Avatar
Validate 1
Level 1
johng23
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
johng23
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile
johng23
Level 1

13-06-2018

smacdonald2008​: The reference you gave refers to the links I mentioned already.  It does not work in 6.2, or the description is incomplete for the Touch UI JavaScript client lib.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

13-06-2018

See Justin comment -

Oak already supports regex validation: https://jackrabbit.apache.org/oak/docs/apidocs/org/apache/jackrabbit/oak/spi/security/user/action/Pa...

Have you looked at that API?

Avatar

Avatar
Validate 1
Level 1
johng23
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
johng23
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile
johng23
Level 1

13-06-2018

smacdonald2008​: I've probably made my question confusing.  I have regex validation working.  What's not working is a descriptive error message when an invalid password is entered.  It just says: "ERROR: Something went wrong while changing the user's password" and it would be better to say "ERROR: Your password needs uppercase and lowercase letters, digits and symbols." or something like that.  It's this message that I'm not able to change.

Avatar

Avatar
Give Back 50
Employee
Kunwar
Employee

Likes

65 likes

Total Posts

253 posts

Correct Reply

72 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Kunwar
Employee

Likes

65 likes

Total Posts

253 posts

Correct Reply

72 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Kunwar
Employee

13-06-2018

You need to do something like (1) where you can overlay and make it more descriptive

(1): Experiencing Adobe Experience Manager - Day CQ: AEM 61 - Touch UI Add Simple Password Policy

Avatar

Avatar
Validate 1
Level 1
johng23
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
johng23
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile
johng23
Level 1

13-06-2018

Kunwar​: I tried exactly what's in that link (the 4 steps) but nothing happened - that's the second link in my question.  Maybe it doesn't work with 6.2 because of some changes since 6.1?

Avatar

Avatar
Validate 1
Level 1
johng23
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
johng23
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile
johng23
Level 1

13-06-2018

Kunwar​: I also tried installing the package that's embedded in the link (touchui-enforce-password-policy.zip)

I'm using 6.2 SP1-CFP15