Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F726925
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
Mon, Jan 6, 3:25 AM
Size
473 B
Mime Type
text/x-diff
Expires
Tue, Jan 7, 3:25 AM (2 d, 18 h ago)
Engine
blob
Format
Raw Data
Handle
537009
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