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:
@@ -141,6 +141,8 @@ class PhabricatorOAuthLoginController extends PhabricatorAuthController {
|
|||||||
// Login with known auth.
|
// Login with known auth.
|
||||||
|
|
||||||
if ($oauth_info->getID()) {
|
if ($oauth_info->getID()) {
|
||||||
|
$unguarded = AphrontWriteGuard::beginScopedUnguardedWrites();
|
||||||
|
|
||||||
$known_user = id(new PhabricatorUser())->load($oauth_info->getUserID());
|
$known_user = id(new PhabricatorUser())->load($oauth_info->getUserID());
|
||||||
|
|
||||||
$request->getApplicationConfiguration()->willAuthenticateUserWithOAuth(
|
$request->getApplicationConfiguration()->willAuthenticateUserWithOAuth(
|
||||||
|
|||||||
Reference in New Issue
Block a user