Piwik\Plugins\Login\Auth::setTokenAuth PHP Méthode

setTokenAuth() public méthode

Accessor to set authentication token
public setTokenAuth ( string $token_auth )
$token_auth string authentication token
    public function setTokenAuth($token_auth)
    {
        $this->token_auth = $token_auth;
    }

Usage Example

Exemple #1
0
 private function authenticate($login, $tokenAuth)
 {
     $this->auth->setLogin($login);
     $this->auth->setTokenAuth($tokenAuth);
     return $this->auth->authenticate();
 }