Written by

Question Sandeep K C · Aug 22, 2023

Override change password page

Hi guys,

In Cache CSP application, I have enabled Password expiration days to certain days in System > Security Management > System-wide Security Parameters. When password expires for the users and they try to login the login page takes to standard cache password change page. 

Is there anyway I can display my overridden page instead of standard cache password change page? 

Reason to display my own page:  I needed to break down the UserName, for eg: UserName into CompanyID - IBA and User ID - san.

Currently, I have overridden %CSP.PasswordChange class to CSS.CSP.ChangePassword.cls and included this in System > Security Management > Web Applications > Edit Web Application and CSPSystem user has a role that contains Read permission but I am still receiving the same standard cache password change page.

Kind Regards,

Sandeep

Product version: Caché 2018.1
$ZV: Cache for Windows (x86-64) 2018.1.5 (Build 659) Mon Mar 22 2021 07:15:21 EDT

Comments

Vitaliy Serdtsev · Aug 23, 2023

Look at the class %SYSTEM.CSP:

CSS><FONT COLOR="#0000ff">d $system</FONT><FONT COLOR="#008080">.CSP</FONT><FONT COLOR="#000000">.</FONT><FONT COLOR="#0000ff">DisplayConfig</FONT><FONT COLOR="#000000">()</FONT>
...

CSS><FONT COLOR="#0000ff">w $system</FONT><FONT COLOR="#008080">.CSP</FONT><FONT COLOR="#000000">.</FONT><FONT COLOR="#0000ff">GetConfig</FONT><FONT COLOR="#000000">(</FONT><FONT COLOR="#008000">"DefaultPasswordChangePage"</FONT><FONT COLOR="#000000">)</FONT> %CSP.PasswordChange.cls

CSS><FONT COLOR="#0000ff">d $system</FONT><FONT COLOR="#008080">.CSP</FONT><FONT COLOR="#000000">.</FONT><FONT COLOR="#0000ff">SetConfig</FONT><FONT COLOR="#000000">(</FONT><FONT COLOR="#008000">"DefaultPasswordChangePage"</FONT><FONT COLOR="#000000">,</FONT><FONT COLOR="#008000">"CSS.CSP.ChangePassword.cls"</FONT><FONT COLOR="#000000">)</FONT>

CSS><FONT COLOR="#0000ff">w $system</FONT><FONT COLOR="#008080">.CSP</FONT><FONT COLOR="#000000">.</FONT><FONT COLOR="#0000ff">GetConfig</FONT><FONT COLOR="#000000">(</FONT><FONT COLOR="#008000">"DefaultPasswordChangePage"</FONT><FONT COLOR="#000000">)</FONT> CSS.CSP.ChangePassword.cls

0