🐛 Bug fixes in non-cached notification preferences

This commit is contained in:
2024-10-14 23:45:28 +08:00
parent 8e3ce09734
commit be32ad1522
3 changed files with 11 additions and 19 deletions

View File

@@ -26,7 +26,7 @@ func DetectRisk(user models.Account, ip, ua string) int {
Model(models.AuthTicket{}).
Count(&clue).Error; err == nil {
if clue >= 1 {
return 3
return 1
}
}