From 44acf706812bc77812e6648c2cc28af36e172a14 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Wed, 25 Oct 2017 23:03:31 +0200 Subject: Refactor login / ban authentication steps Relates to https://github.com/shaarli/Shaarli/issues/324 Added: - Add the `LoginManager` class to manage logins and bans Changed: - Refactor IP ban management - Simplify logic - Avoid using globals, inject dependencies Fixed: - Use `ban_duration` instead of `ban_after` when setting a new ban Signed-off-by: VirtualTam --- tpl/vintage/loginform.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tpl/vintage/loginform.html') diff --git a/tpl/vintage/loginform.html b/tpl/vintage/loginform.html index 1becd44f..2c9b710e 100644 --- a/tpl/vintage/loginform.html +++ b/tpl/vintage/loginform.html @@ -2,7 +2,7 @@ {include="includes"} Date: Sat, 24 Mar 2018 21:55:03 +0100 Subject: fix: IP ban check for the Vintage theme Introduced by https://github.com/shaarli/Shaarli/pull/1008 Signed-off-by: VirtualTam --- tpl/vintage/loginform.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tpl/vintage/loginform.html') diff --git a/tpl/vintage/loginform.html b/tpl/vintage/loginform.html index 2c9b710e..0f7d6387 100644 --- a/tpl/vintage/loginform.html +++ b/tpl/vintage/loginform.html @@ -13,7 +13,7 @@ {include="page.header"}
- {if="!ban_canLogin($conf)"} + {if="!$user_can_login"} You have been banned from login after too many failed attempts. Try later. {else}
-- cgit v1.2.3