Menu

Create Password Expiration

barakbar
2022-10-11
2022-10-23
  • barakbar

    barakbar - 2022-10-11

    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
  • Jeffrey Bostoen

    Jeffrey Bostoen - 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.

     
  • barakbar

    barakbar - 2022-10-12

    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?

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2022-10-12

    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.

     
  • barakbar

    barakbar - 2022-10-12

    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

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2022-10-23

    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, ...).

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.