(params []dto.Param, index string)
| 378 | } |
| 379 | |
| 380 | func getValueByIndex(params []dto.Param, index string) string { |
| 381 | for _, p := range params { |
| 382 | if p.Index == index { |
| 383 | return p.Value |
| 384 | } |
| 385 | } |
| 386 | return "" |
| 387 | } |
| 388 | |
| 389 | func CountRecentFailedLoginLogs(minutes uint, failCount uint) (int, bool, error) { |
| 390 | now := time.Now() |