Differential D20666 Diff 49293 src/applications/people/mail/PhabricatorPeopleEmailLoginMailEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/mail/PhabricatorPeopleEmailLoginMailEngine.php
| Show All 28 Lines | protected function newMail() { | ||||
| if ($is_set_password) { | if ($is_set_password) { | ||||
| $subject = pht('[Phabricator] Account Password Link'); | $subject = pht('[Phabricator] Account Password Link'); | ||||
| } else { | } else { | ||||
| $subject = pht('[Phabricator] Account Login Link'); | $subject = pht('[Phabricator] Account Login Link'); | ||||
| } | } | ||||
| $recipient = $this->getRecipient(); | $recipient = $this->getRecipient(); | ||||
| PhabricatorSystemActionEngine::willTakeAction( | |||||
| array($recipient->getPHID()), | |||||
| new PhabricatorAuthEmailLoginAction(), | |||||
| 1); | |||||
| $engine = new PhabricatorAuthSessionEngine(); | $engine = new PhabricatorAuthSessionEngine(); | ||||
| $login_uri = $engine->getOneTimeLoginURI( | $login_uri = $engine->getOneTimeLoginURI( | ||||
| $recipient, | $recipient, | ||||
| null, | null, | ||||
| PhabricatorAuthSessionEngine::ONETIME_RESET); | PhabricatorAuthSessionEngine::ONETIME_RESET); | ||||
| $is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business'); | $is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business'); | ||||
| $have_passwords = $this->isPasswordAuthEnabled(); | $have_passwords = $this->isPasswordAuthEnabled(); | ||||
| ▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines | |||||