public function regenerateTokenAuth($userLogin) { $this->checkUserIsNotAnonymous($userLogin); Piwik::checkUserHasSuperUserAccessOrIsTheUser($userLogin); $this->model->updateUserTokenAuth($userLogin, $this->createTokenAuth($userLogin)); }