cvs: pear /Auth Auth.php

From: Date: Sat, 01 Feb 2003 09:29:16 +0000
Subject: cvs: pear /Auth Auth.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-8625@lists.php.net to get a copy of this message
mj Sat Feb 1 04:29:16 2003 EDT Modified files: /pear/Auth Auth.php Log: * Be a bit more paranoid when checking credentials. Index: pear/Auth/Auth.php diff -u pear/Auth/Auth.php:1.45 pear/Auth/Auth.php:1.46 --- pear/Auth/Auth.php:1.45 Sat Jan 4 06:54:43 2003 +++ pear/Auth/Auth.php Sat Feb 1 04:29:15 2003 @@ -16,7 +16,7 @@ // | Authors: Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Auth.php,v 1.45 2003/01/04 11:54:43 mj Exp $ +// $Id: Auth.php,v 1.46 2003/02/01 09:29:15 mj Exp $ // require_once "PEAR.php"; @@ -132,7 +132,7 @@ * * @author Martin Jansen <mj@php.net> * @package Auth - * @version $Revision: 1.45 $ + * @version $Revision: 1.46 $ */ define("AUTH_IDLED", -1); @@ -352,12 +352,16 @@ */ function login() { + $login_ok = false; + /** * When the user has already entered a username, * we have to validate it. */ if (!empty($this->username)) { - $login_ok = $this->storage->fetchData($this->username, $this->password); + if (true === $this->storage->fetchData($this->username, $this->password)) { + $login_ok = true; + } } if (!empty($this->username) && $login_ok) {

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