🐛 Bug fixes in non-cached notification preferences
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user