* Finish task #62936.
This commit is contained in:
@@ -3,6 +3,8 @@ if(window.self !== window.top) window.top.location.href = window.location.href;
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
timeoutID = null;
|
||||
|
||||
/* Fix bug for misc-ping */
|
||||
$('#hiddenwin').removeAttr('id');
|
||||
|
||||
@@ -33,10 +35,19 @@ $(document).ready(function()
|
||||
var link = createLink('user', 'login');
|
||||
var keepLogin = $('#keepLoginon').attr('checked') == 'checked' ? 1 : 0;
|
||||
var captcha = $('#captcha').length == 1 ? $('#captcha').val() : '';
|
||||
var timeout = true;
|
||||
|
||||
clearTimeout(timeoutID);
|
||||
timeoutID = setTimeout(function()
|
||||
{
|
||||
if(timeout) alert(loginTimeoutTip);
|
||||
}, 4000);
|
||||
|
||||
$.get(createLink('user', 'refreshRandom'), function(data)
|
||||
{
|
||||
var rand = data;
|
||||
timeout = false;
|
||||
|
||||
$.ajax
|
||||
({
|
||||
url: link,
|
||||
|
||||
@@ -251,6 +251,7 @@ $lang->user->error->noEmail = 'The user does not register email. Please
|
||||
$lang->user->error->errorEmail = 'The account does not match the email. Please enter a new one.';
|
||||
$lang->user->error->emailSetting = 'No email is configured in the system. Contact the admin to reset the email.';
|
||||
$lang->user->error->sendMailFail = 'Message sending failed, please try again!';
|
||||
$lang->user->error->loginTimeoutTip = 'Login failed, please check if the proxy service is normal.';
|
||||
|
||||
$lang->user->contactFieldList['phone'] = $lang->user->phone;
|
||||
$lang->user->contactFieldList['mobile'] = $lang->user->mobile;
|
||||
|
||||
@@ -251,6 +251,7 @@ $lang->user->error->noEmail = 'The user does not register email. Please
|
||||
$lang->user->error->errorEmail = 'The account does not match the email. Please enter a new one.';
|
||||
$lang->user->error->emailSetting = 'No email is configured in the system. Contact the admin to reset the email.';
|
||||
$lang->user->error->sendMailFail = 'Message sending failed, please try again!';
|
||||
$lang->user->error->loginTimeoutTip = 'Login failed, please check if the proxy service is normal.';
|
||||
|
||||
$lang->user->contactFieldList['phone'] = $lang->user->phone;
|
||||
$lang->user->contactFieldList['mobile'] = $lang->user->mobile;
|
||||
|
||||
@@ -251,6 +251,7 @@ $lang->user->error->noEmail = 'The user does not register email. Please
|
||||
$lang->user->error->errorEmail = 'The account does not match the email. Please enter a new one.';
|
||||
$lang->user->error->emailSetting = 'No email is configured in the system. Contact the admin to reset the email.';
|
||||
$lang->user->error->sendMailFail = 'Message sending failed, please try again!';
|
||||
$lang->user->error->loginTimeoutTip = 'Échec de la connexion, veuillez vérifier si le service proxy est activé.';
|
||||
|
||||
$lang->user->contactFieldList['phone'] = $lang->user->phone;
|
||||
$lang->user->contactFieldList['mobile'] = $lang->user->mobile;
|
||||
|
||||
@@ -251,6 +251,7 @@ $lang->user->error->noEmail = '该用户未绑定邮箱,请联系管
|
||||
$lang->user->error->errorEmail = '用户名和邮箱不匹配,请重新输入。';
|
||||
$lang->user->error->emailSetting = '系统未配置发信邮箱,请联系管理员重置。';
|
||||
$lang->user->error->sendMailFail = '邮件发送失败,请重试!';
|
||||
$lang->user->error->loginTimeoutTip = '系统登录失败,请检查代理服务是否正常';
|
||||
|
||||
$lang->user->contactFieldList['phone'] = $lang->user->phone;
|
||||
$lang->user->contactFieldList['mobile'] = $lang->user->mobile;
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
include '../../common/view/header.lite.html.php';
|
||||
if(empty($config->notMd5Pwd))js::import($jsRoot . 'md5.js');
|
||||
?>
|
||||
<?php js::set('loginTimeoutTip', $lang->user->error->loginTimeoutTip);?>
|
||||
<main id="main" class="fade no-padding">
|
||||
<div class="container" id="login">
|
||||
<div id="loginPanel">
|
||||
|
||||
Reference in New Issue
Block a user