Skip to content

Commit

Permalink
Check if passwords are returned.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Feb 26, 2014
1 parent 72fa12b commit 34d8efc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gollem/lib/Auth.php
Expand Up @@ -333,8 +333,11 @@ static protected function _getBackends()
global $session;

if ($backends = $session->get('gollem', 'backends', $session::TYPE_ARRAY)) {
foreach ($session->get('gollem', 'backends_password', $session::TYPE_ARRAY) as $key => $val) {
$backends[$key]['params']['password'] = $val;
$passwords = $session->get('gollem', 'backends_password', $session::TYPE_ARRAY);
if ($passwords) {
foreach ($passwords as $key => $val) {
$backends[$key]['params']['password'] = $val;
}
}
}

Expand Down

0 comments on commit 34d8efc

Please sign in to comment.