Skip to content
Snippets Groups Projects
Verified Commit b07c5a3a authored by Jan Pavlíček's avatar Jan Pavlíček
Browse files

fix: entropy attributes are arrays

parent 0d0982f8
No related branches found
No related tags found
1 merge request!56feat: user without sfa with mfa must perform mfa, without either will be redirected to new page
Pipeline #283056 passed
......@@ -254,10 +254,10 @@ class SwitchAuth extends \SimpleSAML\Auth\ProcessingFilter
return false;
}
if ($attributes[$this->sfa_alphabet_attr] >= 52 && $attributes[$this->sfa_len_attr] >= 12) {
if ($attributes[$this->sfa_alphabet_attr][0] >= 52 && $attributes[$this->sfa_len_attr][0] >= 12) {
return true;
}
if ($attributes[$this->sfa_alphabet_attr] >= 72 && $attributes[$this->sfa_len_attr] >= 8) {
if ($attributes[$this->sfa_alphabet_attr][0] >= 72 && $attributes[$this->sfa_len_attr][0] >= 8) {
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment