Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/provider/PhabricatorPasswordAuthProvider.php
Context not available. | |||||
if ($request->isFormPost()) { | if ($request->isFormPost()) { | ||||
if (!$require_captcha || $captcha_valid) { | if (!$require_captcha || $captcha_valid) { | ||||
$username_or_email = $request->getStr('username'); | $username_or_email = $request->getStr('username'); | ||||
if (strlen($username_or_email)) { | if (@strlen($username_or_email)) { | ||||
$user = id(new PhabricatorUser())->loadOneWhere( | $user = id(new PhabricatorUser())->loadOneWhere( | ||||
'username = %s', | 'username = %s', | ||||
$username_or_email); | $username_or_email); | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0