* finish task #4851.

This commit is contained in:
wangyidong
2018-09-20 17:34:53 +08:00
parent 36ced48147
commit a4e7756fd5
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -779,7 +779,11 @@ class user extends control
{
die(js::error(sprintf($this->lang->user->lockWarning, $remainTimes)));
}
die(js::error($this->lang->user->loginFailed));
$errorScript = js::error($this->lang->user->loginFailed);
/* Finish task #4851. */
if($this->post->verifyRand and !isset($_SESSION['rand'])) $errorScript .= js::reload('parent');
die($errorScript);
}
}
else
+1 -1
View File
@@ -52,6 +52,7 @@ if(empty($config->notMd5Pwd))js::import($jsRoot . 'md5.js');
echo html::submitButton($lang->login, '', 'btn btn-primary');
if($app->company->guest) echo html::linkButton($lang->user->asGuest, $this->createLink($config->default->module));
echo html::hidden('referer', $referer);
echo html::hidden('verifyRand', $rand);
echo html::a(inlink('reset'), $lang->user->resetPassword);
?>
</td>
@@ -84,7 +85,6 @@ if(empty($config->notMd5Pwd))js::import($jsRoot . 'md5.js');
<?php $siteURL = 'http://api.zentao.net';?>
<iframe id='updater' class='hidden' frameborder='0' width='100%' scrolling='no' allowtransparency='true' src="<?php echo $siteURL;?>/updater-isLatest-<?php echo $config->version;?>-<?php echo $s;?>.html?lang=<?php echo str_replace('-', '_', $this->app->getClientLang())?>"></iframe>
<?php endif;?>
<?php echo html::hidden('verifyRand', $rand);?>
</div>
</div>
</div>