fix: remove u2f with pin from 2fa check (#1121)

* fix: remove u2f with pin from 2fa check

* show error message on mfa init verify
This commit is contained in:
Livio Amstutz
2020-12-18 16:30:57 +01:00
committed by GitHub
parent 410a53f15b
commit e15fc0b92b
3 changed files with 5 additions and 13 deletions

View File

@@ -163,19 +163,6 @@ func (u *UserView) MFATypesAllowed(level req_model.MFALevel, policy *iam_model.L
}
}
//PLANNED: add sms
fallthrough
case req_model.MFALevelMultiFactor:
if policy.HasMultiFactors() {
for _, mfaType := range policy.MultiFactors {
switch mfaType {
case iam_model.MultiFactorTypeU2FWithPIN:
if u.IsPasswordlessReady() {
types = append(types, req_model.MFATypeU2FUserVerification)
}
}
}
}
//PLANNED: add token
}
return types, required
}