public function passwordsent($request)
    {
        $controller = $this->getResponseController(_t('Security.LOSTPASSWORDHEADER', 'Lost Password'));

        // if the controller calls Director::redirect(), this will break early
        if (($response = $controller->getResponse()) && $response->isFinished()) {
            return $response;
        }

        $username = Convert::raw2xml(rawurldecode($request->param('ID')));

        $customisedController = $controller->customise([
            'Title' => _t('LDAPSecurity.PASSWORDSENTHEADER', "Password reset link sent to '{username}'",
                ['username' => $username]),
            'Content' =>
                "<p>"
                . _t('LDAPSecurity.PASSWORDSENTTEXT',
                    "Thank you! A reset link has been sent to '{username}', provided an account exists.",
                    ['username' => $username])
                . "</p>",
            'Username' => $username
        ]);
        return $customisedController->renderWith($this->getTemplatesFor('passwordsent'));
    }
public function passwordsent($request)
    {
        $controller = $this->getResponseController(_t('Security.LOSTPASSWORDHEADER', 'Lost Password'));

        // if the controller calls Director::redirect(), this will break early
        if (($response = $controller->getResponse()) && $response->isFinished()) {
            return $response;
        }

        $username = Convert::raw2xml(rawurldecode($request->param('ID')));

        $customisedController = $controller->customise([
            'Title' => _t('LDAPSecurity.PASSWORDSENTHEADER', "Password reset link sent to '{username}'",
                ['username' => $username]),
            'Content' =>
                "<p>"
                . _t('LDAPSecurity.PASSWORDSENTTEXT',
                    "Thank you! A reset link has been sent to '{username}', provided an account exists.",
                    ['username' => $username])
                . "</p>",
            'Username' => $username
        ]);
        return $customisedController->renderWith($this->getTemplatesFor('passwordsent'));
    }
public function passwordsent ( $ request ) { $ controller = $ this -> getResponseController ( _t ( 'Security.LOSTPASSWORDHEADER' , 'Lost Password' ) ) ; // if the controller calls Director::redirect(), this will break early if ( ( $ response = $ controller -> getResponse ( ) ) && $ response -> isFinished ( ) ) { return $ response ; } $ username = Convert :: raw2xml ( rawurldecode ( $ request -> param ( 'ID' ) ) ) ; $ customisedController = $ controller -> customise ( [ 'Title' => _t ( 'LDAPSecurity.PASSWORDSENTHEADER' , "Password reset link sent to '{username}'" , [ 'username' => $ username ] ) , 'Content' => "<p>" . _t ( 'LDAPSecurity.PASSWORDSENTTEXT' , "Thank you! A reset link has been sent to '{username}', provided an account exists." , [ 'username' => $ username ] ) . "</p>" , 'Username' => $ username ] ) ; return $ customisedController -> renderWith ( $ this -> getTemplatesFor ( 'passwordsent' ) ) ; }
Show the "password sent" page, after a user has requested
to reset their password.

@param SS_HTTPRequest $request The SS_HTTPRequest for this action.
@return string Returns the "password sent" page as HTML code.
Show the password sent page after a user has requested to reset their password .