Page MenuHomec4science

PhabricatorRefreshCSRFController.php
No OneTemporary

File Metadata

Created
Sat, Nov 30, 02:45

PhabricatorRefreshCSRFController.php

<?php
final class PhabricatorRefreshCSRFController extends PhabricatorAuthController {
public function processRequest() {
$request = $this->getRequest();
$user = $request->getUser();
return id(new AphrontAjaxResponse())
->setContent(
array(
'token' => $user->getCSRFToken(),
));
}
}

Event Timeline