From c04805cde4a1a666f27d44380124ad54080666fc Mon Sep 17 00:00:00 2001 From: Jason Ge Date: Fri, 19 Aug 2011 15:22:30 -0700 Subject: [PATCH] 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 --- .../auth/controller/oauth/PhabricatorOAuthLoginController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/applications/auth/controller/oauth/PhabricatorOAuthLoginController.php b/src/applications/auth/controller/oauth/PhabricatorOAuthLoginController.php index 037d7d078c..ceefaae846 100644 --- a/src/applications/auth/controller/oauth/PhabricatorOAuthLoginController.php +++ b/src/applications/auth/controller/oauth/PhabricatorOAuthLoginController.php @@ -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(