🐛 Bug fixes of missing id token (via goth)
All checks were successful
release-nightly / build-docker (push) Successful in 3m44s

This commit is contained in:
2024-01-30 21:15:15 +08:00
parent 55c3eec1c8
commit 359d3604d2
3 changed files with 16 additions and 21 deletions

View File

@ -18,9 +18,9 @@ func CalcRisk(user models.Account, ip, ua string) int {
IpAddress: ip,
}).Model(models.AuthChallenge{}).Count(&secureFactor).Error; err == nil {
if secureFactor >= 3 {
risk -= 2
risk -= 3
} else if secureFactor >= 1 {
risk -= 1
risk -= 2
}
}