本文整理汇总了PHP中AuthManager::getFailureMessage方法的典型用法代码示例。如果您正苦于以下问题:PHP AuthManager::getFailureMessage方法的具体用法?PHP AuthManager::getFailureMessage怎么用?PHP AuthManager::getFailureMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AuthManager
的用法示例。
在下文中一共展示了AuthManager::getFailureMessage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
$cidRequired = isset($_REQUEST['cidRequired']) ? $_REQUEST['cidRequired'] : false;
//TODO: possibility to continue in anonymous
$uidRequired = true;
// The script needs the user to be authentificated
if (!claro_is_user_authenticated() && $uidRequired) {
$defaultLoginValue = '';
$dialogBox = new DialogBox();
if (isset($_SESSION['lastUserName'])) {
$defaultLoginValue = strip_tags($_SESSION['lastUserName']);
unset($_SESSION['lastUserName']);
}
if (get_conf('claro_displayLocalAuthForm', true) == true) {
if ($claro_loginRequested && !$claro_loginSucceeded) {
if (AuthManager::getFailureMessage()) {
// need to use get_lang two times...
$dialogBox->error(get_lang(AuthManager::getFailureMessage()));
} else {
$dialogBox->error(get_lang('Login failed.') . ' ' . get_lang('Please try again.'));
}
if (get_conf('allowSelfReg', false)) {
$dialogBox->warning(get_lang('If you haven\'t a user account yet, use the <a href="%url">the account creation form</a>.', array('%url' => get_path('url') . '/claroline/auth/inscription.php')));
} else {
$dialogBox->error(get_lang('Contact your administrator.'));
}
$dialogBox->warning(get_lang('Warning the system distinguishes uppercase (capital) and lowercase (small) letters'));
}
if (get_conf('claro_secureLogin', false)) {
$formAction = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
} else {
$formAction = $_SERVER['PHP_SELF'];
}