CAS 6.3.x Password Policy

95 views
Skip to first unread message

Bartosz Nitkiewicz

unread,
Mar 30, 2021, 10:08:23 AM3/30/21
to CAS Community
Hi.
After successful login to CAS I see password expiration days warning. In polish messages_pl.properties there is section:

password.expiration.warning=Termin ważności hasła upływa za {0} dni. Proszę <a href="{0}" class="link-change-password">zmienić hasło</a>

It gives me something like this:
Termin ważności hasła upływa za 11 <- this is proper value dni. Proszę 11 zmienić hasło.

I noticed that in other languages there is: Please <a href="{1}" class="link-change-password">change your password</a>. So I've changed it to 1.

I want to set this value for custom URL with application for changing password.
Where should I look for it? Maybe there is some cas.properties setting for it?
Any hints?
Regards
BN


Andy Ng

unread,
Mar 30, 2021, 10:44:36 PM3/30/21
to CAS Community, Bartosz Nitkiewicz
Hi BN,

Seems like you can override this file to set a custom URL.


However, I suspect this link can be set somewhere else as well, maybe you can trace the logic see if you can find where it is set.
If not, I think this is a bug, seems weird you need to override a file to change such a URL....

See if this helps,

Cheers!
Andy

Jérôme Rautureau

unread,
Mar 31, 2021, 4:00:59 PM3/31/21
to cas-...@apereo.org, Bartosz Nitkiewicz
Hello

Same issue in 6.4RC branch.

Still trying to find where this URL can be set.

In the code the message.format code section has on only argument...the number of days .



--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/b976ad5e-e73a-40a5-8cdc-688e03d01300n%40apereo.org.
Reply all
Reply to author
Forward
0 new messages