mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 13:22:42 +01:00
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
This commit is contained in:
parent
396e8ba82c
commit
14627ad65b
1 changed files with 1 additions and 1 deletions
|
@ -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 '.
|
||||
|
|
Loading…
Reference in a new issue