Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/PhabricatorEmailLoginController.php
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
| $e_email = pht('Required'); | $e_email = pht('Required'); | ||||
| } | } | ||||
| if (!$errors) { | if (!$errors) { | ||||
| // NOTE: Don't validate the email unless the captcha is good; this makes | // NOTE: Don't validate the email unless the captcha is good; this makes | ||||
| // it expensive to fish for valid email addresses while giving the user | // it expensive to fish for valid email addresses while giving the user | ||||
| // a better error if they goof their email. | // a better error if they goof their email. | ||||
| $action_actor = PhabricatorSystemActionEngine::newActorFromRequest( | |||||
| $request); | |||||
| PhabricatorSystemActionEngine::willTakeAction( | |||||
| array($action_actor), | |||||
| new PhabricatorAuthTryEmailLoginAction(), | |||||
| 1); | |||||
| $target_email = id(new PhabricatorUserEmail())->loadOneWhere( | $target_email = id(new PhabricatorUserEmail())->loadOneWhere( | ||||
| 'address = %s', | 'address = %s', | ||||
| $v_email); | $v_email); | ||||
| $target_user = null; | $target_user = null; | ||||
| if ($target_email) { | if ($target_email) { | ||||
| $target_user = id(new PhabricatorUser())->loadOneWhere( | $target_user = id(new PhabricatorUser())->loadOneWhere( | ||||
| 'phid = %s', | 'phid = %s', | ||||
| ▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines | |||||