From 14627ad65b89f1e24cfb265033ecdb52fb1c4714 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 24 Feb 2014 11:45:28 -0800 Subject: [PATCH] Fix an incorrectly spelled call on the registration error pathway Summary: If you copy the registration URL, then register, then load the URL again while logged out (i.e., attempt to reuse the registration URL), we try to show you a tailored error message. However, this call is not correct so we show you a not-so tailored exception instead. Test Plan: - Get to the registration screen. - Save URL. - Complete registration. - Log out. - Return to saved URL. Previously, exception. Now, readable error. {F117585} Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D8322 --- src/applications/auth/controller/PhabricatorAuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/auth/controller/PhabricatorAuthController.php b/src/applications/auth/controller/PhabricatorAuthController.php index 697d306252..9212c4c49c 100644 --- a/src/applications/auth/controller/PhabricatorAuthController.php +++ b/src/applications/auth/controller/PhabricatorAuthController.php @@ -158,7 +158,7 @@ abstract class PhabricatorAuthController extends PhabricatorController { } if ($account->getUserPHID()) { - if ($account->getUserPHID() != $viewer->getUserPHID()) { + if ($account->getUserPHID() != $viewer->getPHID()) { $response = $this->renderError( pht( 'The account you are attempting to register or link is already '.