]> git.immae.eu Git - github/shaarli/Shaarli.git/commit
Refactor login / ban authentication steps 1008/head
authorVirtualTam <virtualtam@flibidi.net>
Wed, 25 Oct 2017 21:03:31 +0000 (23:03 +0200)
committerVirtualTam <virtualtam@flibidi.net>
Mon, 5 Feb 2018 17:12:09 +0000 (18:12 +0100)
commit44acf706812bc77812e6648c2cc28af36e172a14
tree2c211d422b9d6c27ab341644531913361b6f1024
parenta381c373b30ed04001ea31ff5c38e077edacaf18
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 <virtualtam@flibidi.net>
application/LoginManager.php [new file with mode: 0644]
index.php
tests/LoginManagerTest.php [new file with mode: 0644]
tests/utils/FakeConfigManager.php
tpl/default/loginform.html
tpl/vintage/loginform.html