cvs: pear /Auth Auth.php

From: Date: Wed, 09 Jan 2002 21:26:04 +0000
Subject: cvs: pear /Auth Auth.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1899@lists.php.net to get a copy of this message
mj Wed Jan 9 16:26:04 2002 EDT Modified files: /pear/Auth Auth.php Log: * Also set session variables with showLogin = true (Patch by LIMBOURG Arnaud <arnaud.limbourg@cegetel.fr>) Index: pear/Auth/Auth.php diff -u pear/Auth/Auth.php:1.25 pear/Auth/Auth.php:1.26 --- pear/Auth/Auth.php:1.25 Sun Dec 23 09:45:27 2001 +++ pear/Auth/Auth.php Wed Jan 9 16:26:04 2002 @@ -16,7 +16,7 @@ // | Authors: Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Auth.php,v 1.25 2001/12/23 14:45:27 mj Exp $ +// $Id: Auth.php,v 1.26 2002/01/09 21:26:04 mj Exp $ // require_once "PEAR.php"; @@ -132,7 +132,7 @@ * * @author Martin Jansen <mj@php.net> * @package Auth - * @version $Revision: 1.25 $ + * @version $Revision: 1.26 $ */ define("AUTH_IDLED", -1); @@ -299,7 +299,7 @@ $this->assignData(); - if (!$this->checkAuth() && $this->showLogin) { + if (!$this->checkAuth()) { $this->login(); } } @@ -331,7 +331,7 @@ $this->status = AUTH_WRONG_LOGIN; } - if ($this->username == "" || !$login_ok) { + if (($this->username == "" || !$login_ok) && $this->showLogin) { $this->drawLogin($this->storage->activeUser); return; }

« previous php.pear.cvs (#1899) next »