Commit 81efcd1927fb9ef86cb041383224cb6f350b21be

Authored by Neil Blakey-Milner
1 parent 0350ba34

Make it easier to test with correct and incorrect passwords


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4843 c91229c3-7414-0410-bfa2-8a42b809f60b
tests/authentication/checkPassword.php
... ... @@ -4,7 +4,12 @@ require_once("../../config/dmsDefaults.php");
4 4 require_once(KT_LIB_DIR . '/authentication/authenticationutil.inc.php');
5 5  
6 6 $oUser =& User::getByUserName('nbm2');
7   -$foo = KTAuthenticationUtil::checkPassword($oUser, 'asdfa');
8   -var_dump($foo);
  7 +if (0) {
  8 + $foo = KTAuthenticationUtil::checkPassword($oUser, 'asdf');
  9 + var_dump($foo);
  10 +} else {
  11 + $foo = KTAuthenticationUtil::checkPassword($oUser, 'asdjasdjk');
  12 + var_dump($foo);
  13 +}
9 14  
10 15 ?>
... ...