Skip to content
Snippets Groups Projects

feat: user without sfa with mfa must perform mfa, without either will be redirected to new page

Merged Jan Pavlíček requested to merge entropy into main
All threads resolved!
@@ -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;
}
Loading