Start to implement brute force protection

This commit is contained in:
2022-04-03 16:21:09 +02:00
parent b965fa6b4f
commit 05e911bfc5
4 changed files with 96 additions and 3 deletions

View File

@@ -28,3 +28,7 @@ pub const ADMIN_ROUTES: &str = "/admin";
/// Auth route
pub const LOGIN_ROUTE: &str = "/login";
/// Bruteforce protection
pub const KEEP_FAILED_LOGIN_ATTEMPTS_FOR: u64 = 3600;
pub const MAX_FAILED_LOGIN_ATTEMPTS: u64 = 15;