private function generateCallback($request, $token)
    {
        if (! array_key_exists('callback', $request->REQUEST)) {
            return null;
        }
        $calback = $request->REQUEST['callback'];

        $user = $token->get_user();
        $calback = str_replace("{{token}}", $token->token, $calback);
        $calback = str_replace("{{host}}", Pluf_Tenant::current()->domain, $calback);
        $calback = str_replace("{{userId}}", $user->id, $calback);
        $calback = str_replace("{{userLogin}}", $user->login, $calback);
        return $calback;
    }
private function generateCallback($request, $token)
    {
        if (! array_key_exists('callback', $request->REQUEST)) {
            return null;
        }
        $calback = $request->REQUEST['callback'];

        $user = $token->get_user();
        $calback = str_replace("{{token}}", $token->token, $calback);
        $calback = str_replace("{{host}}", Pluf_Tenant::current()->domain, $calback);
        $calback = str_replace("{{userId}}", $user->id, $calback);
        $calback = str_replace("{{userLogin}}", $user->login, $calback);
        return $calback;
    }
private function generateCallback ( $ request , $ token ) { if ( ! array_key_exists ( 'callback' , $ request -> REQUEST ) ) { return null ; } $ calback = $ request -> REQUEST [ 'callback' ] ; $ user = $ token -> get_user ( ) ; $ calback = str_replace ( "{{token}}" , $ token -> token , $ calback ) ; $ calback = str_replace ( "{{host}}" , Pluf_Tenant :: current ( ) -> domain , $ calback ) ; $ calback = str_replace ( "{{userId}}" , $ user -> id , $ calback ) ; $ calback = str_replace ( "{{userLogin}}" , $ user -> login , $ calback ) ; return $ calback ; }
Generates token callback

<ul>
<li> token: recover token</li>
<li> host: server host such as webpich.com</li>
<li> userId: Id of the user</li>
<li> userLogin: login of the user</li>
</ul>

@param Pluf_HTTP_Request $request
@param User_PasswordToken $token
@return NULL|string
Generates token callback