From: Florent Bruneau Date: Tue, 27 May 2008 21:55:03 +0000 (+0200) Subject: Bypass password check. X-Git-Url: http://git.polytechnique.org/?p=dotclear.git;a=commitdiff_plain;h=0ff09dcb44d702fc44e0a7c89a832cc1636c61d4 Bypass password check. Signed-off-by: Florent Bruneau --- 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').'

'; - } } ?>