From 0ff09dcb44d702fc44e0a7c89a832cc1636c61d4 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Tue, 27 May 2008 23:55:03 +0200 Subject: [PATCH] Bypass password check. Signed-off-by: Florent Bruneau --- class.xorg.auth.php | 5 +++++ page.auth.admin.php | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/class.xorg.auth.php b/class.xorg.auth.php index c1e9b82..989e14d 100644 --- a/class.xorg.auth.php +++ b/class.xorg.auth.php @@ -125,6 +125,11 @@ class xorgAuth extends dcAuth { return parent::check($permissions, $blog_id); } + public function checkPassword($pwd) { + $this->buildFromSession(); + return !empty($this->user_id); + } + public function allowPassChange() { return false; } diff --git a/page.auth.admin.php b/page.auth.admin.php index 31f0901..98f7e84 100644 --- a/page.auth.admin.php +++ b/page.auth.admin.php @@ -74,12 +74,7 @@ class xorgLoginPage extends dcUrlHandlers { '

Via Polytechnique.org

' . '

Via le formulaire

' . ''. - '

'.__('You must accept cookies in order to use the private area.').'

'; - - if ($core->auth->allowPassChange()) { - echo '

'.__('I forgot my password').'

'; - } } ?> -- 2.1.4