mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 21:02:41 +01:00
Open AphrontWriteGuard for user login
Summary: Open AphrontWriteGuard for user login. Test Plan: verified that the user can log in. Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: 840
This commit is contained in:
parent
411e16771a
commit
c04805cde4
1 changed files with 2 additions and 0 deletions
|
@ -141,6 +141,8 @@ class PhabricatorOAuthLoginController extends PhabricatorAuthController {
|
|||
// Login with known auth.
|
||||
|
||||
if ($oauth_info->getID()) {
|
||||
$unguarded = AphrontWriteGuard::beginScopedUnguardedWrites();
|
||||
|
||||
$known_user = id(new PhabricatorUser())->load($oauth_info->getUserID());
|
||||
|
||||
$request->getApplicationConfiguration()->willAuthenticateUserWithOAuth(
|
||||
|
|
Loading…
Reference in a new issue