1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 04:20:55 +01:00

Unguard another safe write in Conduit token generation.

This commit is contained in:
epriestley 2011-08-17 12:00:35 -07:00
parent cd3a3bf759
commit b42b78f65c

View file

@ -25,6 +25,11 @@ class PhabricatorConduitTokenController extends PhabricatorConduitController {
$user = $this->getRequest()->getUser();
// Ideally we'd like to verify this, but it's fine to leave it unguarded
// for now and verifying it would need some Ajax junk or for the user to
// click a button or similar.
$unguarded = AphrontWriteGuard::beginScopedUnguardedWrites();
$old_token = id(new PhabricatorConduitCertificateToken())
->loadOneWhere(
'userPHID = %s',