Skip to content

Commit

Permalink
Fix logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jun 11, 2015
1 parent df76aee commit ed3303e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -51,7 +51,7 @@ public function handle(Horde_Controller_Request $request = null)
$username = $credentials->username;
if (empty($values) && empty($username)) {
throw new Horde_Exception_AuthenticationFailure('No username provided.');
} else {
} elseif (!empty($values)) {
// Override the username; AUTODISCOVER MUST use email address.
$credentials->username = $values[2]['value'];
}
Expand Down

0 comments on commit ed3303e

Please sign in to comment.