From b5ef1adccdae8a3f133555a809de31e5c8ab2884 Mon Sep 17 00:00:00 2001 From: Marcus Rohrmoser Date: Fri, 4 Dec 2015 11:54:23 +0100 Subject: [PATCH] =?utf8?q?=E2=9A=93=EF=B8=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- patches/sebsauvage/Shaarli/archive/master/001.patch | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/patches/sebsauvage/Shaarli/archive/master/001.patch b/patches/sebsauvage/Shaarli/archive/master/001.patch index b05f7db..896ff4a 100644 --- a/patches/sebsauvage/Shaarli/archive/master/001.patch +++ b/patches/sebsauvage/Shaarli/archive/master/001.patch @@ -1,18 +1,17 @@ diff --git a/index.php b/index.php -index c102e42..45438b6 100644 +index c102e42..e141da2 100644 --- a/index.php +++ b/index.php -@@ -402,7 +402,12 @@ function ban_canLogin() +@@ -402,7 +402,11 @@ function ban_canLogin() if (isset($_POST['login'])) { if (!ban_canLogin()) die('I said: NO. You are banned for the moment. Go away.'); - if (isset($_POST['password']) && tokenOk($_POST['token']) && (check_auth($_POST['login'], $_POST['password']))) -+ logm($_POST['password']); -+ logm($_POST['token']); -+ logm($_POST['login']); -+ $token_ok=tokenOk($_POST['token']); -+ logm($token_ok); -+ if (isset($_POST['password']) && $token_ok && (check_auth($_POST['login'], $_POST['password']))) ++ logm("password: ".$_POST['password']); ++ logm("token : ".$_POST['token']); ++ logm("login : ".$_POST['login']); ++ logm("token_ok: ".tokenOk($_POST['token'])); ++ if (isset($_POST['password']) && (check_auth($_POST['login'], $_POST['password']))) { // Login/password is ok. ban_loginOk(); // If user wants to keep the session cookie even after the browser closes: -- 2.11.4.GIT