Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/engine/PhabricatorAuthInviteEngine.php
Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | if ($email && ($email->getUserPHID() !== $viewer->getPHID())) { | ||||
->setSubmitButtonURI($this->getLogoutURI()) | ->setSubmitButtonURI($this->getLogoutURI()) | ||||
->setCancelButtonURI('/'); | ->setCancelButtonURI('/'); | ||||
} else if ($email->getIsPrimary()) { | } else if ($email->getIsPrimary()) { | ||||
// NOTE: We never steal primary addresses from other accounts, even | // NOTE: We never steal primary addresses from other accounts, even | ||||
// if they are unverified. This would leave the other account with | // if they are unverified. This would leave the other account with | ||||
// no address. Users can use password recovery to access the other | // no address. Users can use password recovery to access the other | ||||
// account if they really control the address. | // account if they really control the address. | ||||
throw id(new PhabricatorAuthInviteAccountException( | throw id(new PhabricatorAuthInviteAccountException( | ||||
pht('Wrong Acount'), | pht('Wrong Account'), | ||||
pht( | pht( | ||||
'You are logged in as %s, but the email address you just '. | 'You are logged in as %s, but the email address you just '. | ||||
'clicked a link from is already the primary email address '. | 'clicked a link from is already the primary email address '. | ||||
'for another account (%s). Switch accounts, then try again.', | 'for another account (%s). Switch accounts, then try again.', | ||||
phutil_tag('strong', array(), $viewer->getUsername()), | phutil_tag('strong', array(), $viewer->getUsername()), | ||||
phutil_tag('strong', array(), $other_user->getName())))) | phutil_tag('strong', array(), $other_user->getName())))) | ||||
->setSubmitButtonText(pht('Log Out')) | ->setSubmitButtonText(pht('Log Out')) | ||||
->setSubmitButtonURI($this->getLogoutURI()) | ->setSubmitButtonURI($this->getLogoutURI()) | ||||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |