Differential D21766 Diff 51902 src/applications/auth/controller/PhabricatorEmailVerificationController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/PhabricatorEmailVerificationController.php
Show All 38 Lines | if (!$email) { | ||||
'address has been removed, or the email address is owned by another '. | 'address has been removed, or the email address is owned by another '. | ||||
'user. Make sure you followed the link in the email correctly and are '. | 'user. Make sure you followed the link in the email correctly and are '. | ||||
'logged in with the user account associated with the email address.'); | 'logged in with the user account associated with the email address.'); | ||||
$continue = pht('Rats!'); | $continue = pht('Rats!'); | ||||
} else if ($email->getIsVerified() && $viewer->getIsEmailVerified()) { | } else if ($email->getIsVerified() && $viewer->getIsEmailVerified()) { | ||||
$title = pht('Address Already Verified'); | $title = pht('Address Already Verified'); | ||||
$content = pht( | $content = pht( | ||||
'This email address has already been verified.'); | 'This email address has already been verified.'); | ||||
$continue = pht('Continue to Phabricator'); | $continue = pht('Continue'); | ||||
} else if ($request->isFormPost()) { | } else if ($request->isFormPost()) { | ||||
id(new PhabricatorUserEditor()) | id(new PhabricatorUserEditor()) | ||||
->setActor($viewer) | ->setActor($viewer) | ||||
->verifyEmail($viewer, $email); | ->verifyEmail($viewer, $email); | ||||
$title = pht('Address Verified'); | $title = pht('Address Verified'); | ||||
$content = pht( | $content = pht( | ||||
'The email address %s is now verified.', | 'The email address %s is now verified.', | ||||
phutil_tag('strong', array(), $email->getAddress())); | phutil_tag('strong', array(), $email->getAddress())); | ||||
$continue = pht('Continue to Phabricator'); | $continue = pht('Continue'); | ||||
} else { | } else { | ||||
$title = pht('Verify Email Address'); | $title = pht('Verify Email Address'); | ||||
$content = pht( | $content = pht( | ||||
'Verify this email address (%s) and attach it to your account?', | 'Verify this email address (%s) and attach it to your account?', | ||||
phutil_tag('strong', array(), $email->getAddress())); | phutil_tag('strong', array(), $email->getAddress())); | ||||
$continue = pht('Cancel'); | $continue = pht('Cancel'); | ||||
$submit = pht('Verify %s', $email->getAddress()); | $submit = pht('Verify %s', $email->getAddress()); | ||||
} | } | ||||
Show All 23 Lines |