Skip to content

Commit

Permalink
Check for empty password, and redirect to requested URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed May 22, 2017
1 parent a9ea036 commit e465501
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions horde/scripts/get_login.php
Expand Up @@ -22,10 +22,12 @@

// Check for GET auth.
if (empty($_GET['user']) ||
empty($_GET['pass']) ||
!$auth->authenticate($_GET['user'], array('password' => $_GET['pass']))) {
$e = new Horde_Exception_AuthenticationFailure();
$e->application = 'horde';
throw $e;
}

$horde_login_url = Horde_Util::getFormData('url');
require HORDE_BASE . '/index.php';

0 comments on commit e465501

Please sign in to comment.