Skip to content

Commit

Permalink
Merge pull request #10789 from nextcloud/fix/2fa-app-multiple-providers
Browse files Browse the repository at this point in the history
Fix loading providers of 2FA app with more than one provider
  • Loading branch information
MorrisJobke authored Aug 22, 2018
2 parents 3dc31e4 + 024a70a commit e27817a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/private/App/InfoParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ public function parse($file) {
if (isset($array['commands']['command']) && is_array($array['commands']['command'])) {
$array['commands'] = $array['commands']['command'];
}
if (isset($array['two-factor-providers']['provider']) && is_array($array['two-factor-providers']['provider'])) {
$array['two-factor-providers'] = $array['two-factor-providers']['provider'];
}
if (isset($array['activity']['filters']['filter']) && is_array($array['activity']['filters']['filter'])) {
$array['activity']['filters'] = $array['activity']['filters']['filter'];
}
Expand Down

0 comments on commit e27817a

Please sign in to comment.