Skip to content
Snippets Groups Projects
Unverified Commit e1355c9b authored by Pavel Břoušek's avatar Pavel Břoušek Committed by GitHub
Browse files

fix: handle numeric array in mfaEnforceSettings

parent cfbc3039
Branches
Tags
No related merge requests found
...@@ -59,6 +59,9 @@ class Utils ...@@ -59,6 +59,9 @@ class Utils
{ {
if (!empty($state['Attributes'][AuthSwitcher::MFA_ENFORCE_SETTINGS])) { if (!empty($state['Attributes'][AuthSwitcher::MFA_ENFORCE_SETTINGS])) {
$settings = $state['Attributes'][AuthSwitcher::MFA_ENFORCE_SETTINGS]; $settings = $state['Attributes'][AuthSwitcher::MFA_ENFORCE_SETTINGS];
if (isset($settings[0])) {
$settings = $settings[0];
}
if (is_string($settings)) { if (is_string($settings)) {
$settings = json_decode($settings, true, 3, JSON_THROW_ON_ERROR); $settings = json_decode($settings, true, 3, JSON_THROW_ON_ERROR);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment