Skip to content

Commit

Permalink
Don't attempt transparent authentication if we don't have a backend p…
Browse files Browse the repository at this point in the history
…assword
  • Loading branch information
slusarz committed Jul 11, 2014
1 parent 9e6d01c commit 1c63a64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions imp/lib/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ static public function transparent($auth_ob)
$credentials['userId'] = $auth_ob->getCredential('userId');
}

if (!isset($credentials['password']) ||
!strlen($credentials['password'])) {
return false;
}

try {
self::authenticate($credentials);
} catch (Horde_Auth_Exception $e) {
Expand Down

0 comments on commit 1c63a64

Please sign in to comment.