authenticatorforsource.php.svn-base
来自「PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。」· SVN-BASE 代码 · 共 18 行
SVN-BASE
18 行
<?phprequire_once("../../config/dmsDefaults.php");require_once(KT_LIB_DIR . '/authentication/authenticationsource.inc.php');require_once(KT_LIB_DIR . '/authentication/authenticationproviderregistry.inc.php');$oSource = KTAuthenticationSource::get(2);$sProvider = $oSource->getAuthenticationProvider();$oRegistry = KTAuthenticationProviderRegistry::getSingleton();$oProvider =& $oRegistry->getAuthenticationProvider($sProvider);$oAuthenticator = $oProvider->getAuthenticator($oSource);$oUser = User::getByUserName('nbm');$foo = $oAuthenticator->checkPassword($oUser, 'asdfa');var_dump($foo);?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?