mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 06:20:56 +01:00
Unguard another safe write in Conduit token generation.
This commit is contained in:
parent
cd3a3bf759
commit
b42b78f65c
1 changed files with 5 additions and 0 deletions
|
@ -25,6 +25,11 @@ class PhabricatorConduitTokenController extends PhabricatorConduitController {
|
||||||
|
|
||||||
$user = $this->getRequest()->getUser();
|
$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())
|
$old_token = id(new PhabricatorConduitCertificateToken())
|
||||||
->loadOneWhere(
|
->loadOneWhere(
|
||||||
'userPHID = %s',
|
'userPHID = %s',
|
||||||
|
|
Loading…
Reference in a new issue