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/default/loginform.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tpl/default/loginform.html') diff --git a/tpl/default/loginform.html b/tpl/default/loginform.html index 5777a218..d481f452 100644 --- a/tpl/default/loginform.html +++ b/tpl/default/loginform.html @@ -5,7 +5,7 @@ {include="page.header"} -{if="!ban_canLogin($conf)"} +{if="!$user_can_login"}
-- cgit v1.2.3