fix: otp level (#292)

This commit is contained in:
Fabi 2020-06-26 14:44:35 +02:00 committed by GitHub
parent 0a488eb1fb
commit f31bea8d1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,6 +251,9 @@ func (u *UserView) ComputeObject() {
u.State = int32(model.UserStateInitial)
}
}
if u.OTPState != int32(model.MfaStateReady) {
u.MfaMaxSetUp = int32(req_model.MfaLevelNotSetUp)
}
if u.OTPState == int32(model.MfaStateReady) {
u.MfaMaxSetUp = int32(req_model.MfaLevelSoftware)
}