mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:07:32 +00:00
fix: otp level (#292)
This commit is contained in:
@@ -251,6 +251,9 @@ func (u *UserView) ComputeObject() {
|
|||||||
u.State = int32(model.UserStateInitial)
|
u.State = int32(model.UserStateInitial)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if u.OTPState != int32(model.MfaStateReady) {
|
||||||
|
u.MfaMaxSetUp = int32(req_model.MfaLevelNotSetUp)
|
||||||
|
}
|
||||||
if u.OTPState == int32(model.MfaStateReady) {
|
if u.OTPState == int32(model.MfaStateReady) {
|
||||||
u.MfaMaxSetUp = int32(req_model.MfaLevelSoftware)
|
u.MfaMaxSetUp = int32(req_model.MfaLevelSoftware)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user