From 81efcd1927fb9ef86cb041383224cb6f350b21be Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Mon, 6 Feb 2006 10:12:02 +0000 Subject: [PATCH] Make it easier to test with correct and incorrect passwords --- tests/authentication/checkPassword.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/authentication/checkPassword.php b/tests/authentication/checkPassword.php index 1946b4e..5771ef9 100644 --- a/tests/authentication/checkPassword.php +++ b/tests/authentication/checkPassword.php @@ -4,7 +4,12 @@ require_once("../../config/dmsDefaults.php"); require_once(KT_LIB_DIR . '/authentication/authenticationutil.inc.php'); $oUser =& User::getByUserName('nbm2'); -$foo = KTAuthenticationUtil::checkPassword($oUser, 'asdfa'); -var_dump($foo); +if (0) { + $foo = KTAuthenticationUtil::checkPassword($oUser, 'asdf'); + var_dump($foo); +} else { + $foo = KTAuthenticationUtil::checkPassword($oUser, 'asdjasdjk'); + var_dump($foo); +} ?> -- libgit2 0.21.4