From 9d38d0d52b0436d9b08b3b3791546bba29d2811f Mon Sep 17 00:00:00 2001 From: Marcus Rohrmoser Date: Fri, 4 Dec 2015 11:46:49 +0100 Subject: [PATCH] =?utf8?q?=F0=9F=8D=A6.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- patches/sebsauvage/Shaarli/archive/master/001.patch | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/patches/sebsauvage/Shaarli/archive/master/001.patch b/patches/sebsauvage/Shaarli/archive/master/001.patch index c5743b6..daf65a7 100644 --- a/patches/sebsauvage/Shaarli/archive/master/001.patch +++ b/patches/sebsauvage/Shaarli/archive/master/001.patch @@ -1,14 +1,18 @@ diff --git a/index.php b/index.php -index c102e42..5917ef7 100644 +index c102e42..7ee74b3 100644 --- a/index.php +++ b/index.php -@@ -402,6 +402,9 @@ function ban_canLogin() +@@ -402,7 +402,12 @@ 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']); - if (isset($_POST['password']) && tokenOk($_POST['token']) && (check_auth($_POST['login'], $_POST['password']))) ++ $token_ok=tokenOk($_POST['token']) ++ logm($token_ok); ++ if (isset($_POST['password']) && $token_ok && (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