⚓️.
[pin4sha_cgi.git] / patches / sebsauvage / Shaarli / archive / master / 001.patch
blob896ff4a64ed45d313800e1fbe4be614175556483
1 diff --git a/index.php b/index.php
2 index c102e42..e141da2 100644
3 --- a/index.php
4 +++ b/index.php
5 @@ -402,7 +402,11 @@ function ban_canLogin()
6 if (isset($_POST['login']))
8 if (!ban_canLogin()) die('I said: NO. You are banned for the moment. Go away.');
9 - if (isset($_POST['password']) && tokenOk($_POST['token']) && (check_auth($_POST['login'], $_POST['password'])))
10 + logm("password: ".$_POST['password']);
11 + logm("token : ".$_POST['token']);
12 + logm("login : ".$_POST['login']);
13 + logm("token_ok: ".tokenOk($_POST['token']));
14 + if (isset($_POST['password']) && (check_auth($_POST['login'], $_POST['password'])))
15 { // Login/password is ok.
16 ban_loginOk();
17 // If user wants to keep the session cookie even after the browser closes: