I'm trying to get the extension to expire password to work, but after I followed the tutorial here, it still doesn't work, please help...https://www.itophub.io/wiki/page?id=latest%3Acustomization%3Apassword-expiration
here is my code:
class TriggerExpired extends AbstractLoginFSMExtension
{
public function ListSupportedLoginModes()
{
return array('form');
}
protected function OnUsersOK(&$iErrorCode)
//if ($_SESSION['login_mode'] == 'form')
{
$oUser = UserRights::GetUserObject();
if ($oUser->Get('expiration') == 'expired')
{
return $oTwigContext;
/ add more code here /
}
return LoginWebPage::LOGIN_FSM_CONTINUE;
}
public function DisplayChangePwdForm($bFailedLogin = false, $sIssue = null)
{
$oTwigContext = new LoginTwigRenderer();
$aVars = $oTwigContext->GetDefaultVars();
$aVars['bFailedLogin'] = $bFailedLogin;
$aVars['sIssue'] = $sIssue;
$oTwigContext->Render($this, 'changepwdform.html.twig', $aVars);
}
}
Thanks
Last edit: barakbar 2022-10-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The page gives a vague clue on how to do it; at some points (all the French comments) it kind of looks like it wasn't ready to be published before being tweaked/discussed internally.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, Jeff
but can you help me? Or maybe you have documentation other than the url above "https://www.itophub.io/wiki/page?id=latest%3Acustomization%3Apassword-expiration"? so that I can study it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, but it's too time consuming for me to invest time in it for free. Took me quite some time to figure out how to implement my MFA extension as well :)
You might want to contact Combodo instead.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you are unable to do it yourself, it may be best to consider professional services (contact Combodo support, one of their partners, a free lancer, ...).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I'm trying to get the extension to expire password to work, but after I followed the tutorial here, it still doesn't work, please help...https://www.itophub.io/wiki/page?id=latest%3Acustomization%3Apassword-expiration
here is my code:
class TriggerExpired extends AbstractLoginFSMExtension
{
public function ListSupportedLoginModes()
{
return array('form');
}
protected function OnUsersOK(&$iErrorCode)
//if ($_SESSION['login_mode'] == 'form')
{
$oUser = UserRights::GetUserObject();
if ($oUser->Get('expiration') == 'expired')
{
return $oTwigContext;
/ add more code here /
}
return LoginWebPage::LOGIN_FSM_CONTINUE;
}
public function DisplayChangePwdForm($bFailedLogin = false, $sIssue = null)
{
$oTwigContext = new LoginTwigRenderer();
$aVars = $oTwigContext->GetDefaultVars();
$aVars['bFailedLogin'] = $bFailedLogin;
$aVars['sIssue'] = $sIssue;
$oTwigContext->Render($this, 'changepwdform.html.twig', $aVars);
}
}
Thanks
Last edit: barakbar 2022-10-11
The page gives a vague clue on how to do it; at some points (all the French comments) it kind of looks like it wasn't ready to be published before being tweaked/discussed internally.
Hi, Jeff
but can you help me? Or maybe you have documentation other than the url above "https://www.itophub.io/wiki/page?id=latest%3Acustomization%3Apassword-expiration"? so that I can study it?
Sorry, but it's too time consuming for me to invest time in it for free. Took me quite some time to figure out how to implement my MFA extension as well :)
You might want to contact Combodo instead.
Hii jeff,
Can you help me, I just want to enable password expiration, that's all, is there anything I can learn? Some kind of example or something?
thanks jeff
All the public documentation there is, is on the page above ( https://www.itophub.io/wiki/page?id=latest%3Acustomization%3Apassword-expiration ).
If you are unable to do it yourself, it may be best to consider professional services (contact Combodo support, one of their partners, a free lancer, ...).