This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
Incam_SGD/tests/authentication/checkPassword.php

16 lines
363 B
PHP
Raw Normal View History

<?php
require_once("../../config/dmsDefaults.php");
require_once(KT_LIB_DIR . '/authentication/authenticationutil.inc.php');
$oUser =& User::getByUserName('nbm2');
if (0) {
$foo = KTAuthenticationUtil::checkPassword($oUser, 'asdf');
var_dump($foo);
} else {
$foo = KTAuthenticationUtil::checkPassword($oUser, 'asdjasdjk');
var_dump($foo);
}
?>