Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F847844
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
Sat, Apr 19, 6:58 PM
Size
473 B
Mime Type
text/x-diff
Expires
Sun, Apr 20, 6:58 PM (15 m, 17 s)
Engine
blob
Format
Raw Data
Handle
602631
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