src/Security/MemberAuthenticator/LoginHandler.php
protected function redirectToChangePassword()
    {
        $cp = ChangePasswordForm::create($this, 'ChangePasswordForm');
        $cp->sessionMessage(
            _t('SilverStripe\\Security\\Member.PASSWORDEXPIRED', 'Your password has expired. Please choose a new one.'),
            'good'
        );
        $changedPasswordLink = Security::singleton()->Link('changepassword');

        return $this->redirect($this->addBackURLParam($changedPasswordLink));
    }
protected function redirectToChangePassword()
    {
        $cp = ChangePasswordForm::create($this, 'ChangePasswordForm');
        $cp->sessionMessage(
            _t('SilverStripe\\Security\\Member.PASSWORDEXPIRED', 'Your password has expired. Please choose a new one.'),
            'good'
        );
        $changedPasswordLink = Security::singleton()->Link('changepassword');

        return $this->redirect($this->addBackURLParam($changedPasswordLink));
    }
protected function redirectToChangePassword ( ) { $ cp = ChangePasswordForm :: create ( $ this , 'ChangePasswordForm' ) ; $ cp -> sessionMessage ( _t ( 'SilverStripe\\Security\\Member.PASSWORDEXPIRED' , 'Your password has expired. Please choose a new one.' ) , 'good' ) ; $ changedPasswordLink = Security :: singleton ( ) -> Link ( 'changepassword' ) ; return $ this -> redirect ( $ this -> addBackURLParam ( $ changedPasswordLink ) ) ; }
Invoked if password is expired and must be changed

@skipUpgrade
@return HTTPResponse
Invoked if password is expired and must be changed