Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F803693
D471.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Feb 25, 6:22 PM
Size
473 B
Mime Type
text/x-diff
Expires
Wed, Feb 26, 6:22 PM (1 h, 54 m)
Engine
blob
Format
Raw Data
Handle
576460
Attached To
D471: INP-1864 Require Username on the Login Form
D471.diff
View Options
Index: branches/5.2.x/core/units/helpers/user_helper.php
===================================================================
--- branches/5.2.x/core/units/helpers/user_helper.php
+++ branches/5.2.x/core/units/helpers/user_helper.php
@@ -39,7 +39,7 @@
$this->event = new kEvent('u:OnLogin');
}
- if ( !$password && !$remember_login_cookie ) {
+ if ( (!$username || !$password) && !$remember_login_cookie ) {
return LoginResult::INVALID_PASSWORD;
}
Event Timeline
Log In to Comment