1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Captcha login message fix. Backward compat styling fixes.

This commit is contained in:
Cameron 2016-12-10 16:10:56 -08:00
parent 59cacab228
commit e974bdd665
3 changed files with 9 additions and 7 deletions

View File

@ -165,12 +165,11 @@ class userlogin
// Check secure image
if (!$forceLogin && $pref['logcode'] && extension_loaded('gd'))
{
require_once(e_HANDLER."secure_img_handler.php");
$sec_img = new secure_image;
if (!$sec_img->verify_code($_POST['rand_num'], $_POST['code_verify']))
{ // Invalid code
return $this->invalidLogin($username,LOGIN_BAD_CODE);
if ($secImgResult = e107::getSecureImg()->invalidCode($_POST['rand_num'], $_POST['code_verify'])) // Invalid code
{
return $this->invalidLogin($username, LOGIN_BAD_CODE, $secImgResult);
}
}
if (empty($this->userData)) // May have retrieved user data earlier
@ -578,7 +577,7 @@ class userlogin
$doCheck = true;
break;
case LOGIN_BAD_CODE :
$message = LAN_LOGIN_23;
$message = $extra_text; // LAN_LOGIN_23;
$this->logNote('LAN_ROLL_LOG_02', $username);
break;
case LOGIN_NOT_ACTIVATED :

View File

@ -13,9 +13,11 @@
.forum-attachment-file { margin-top:15px; }
.forum-user-combo { padding-bottom:5px }
/*
ul.newforumposts-menu { padding-left: 10px; }
ul.newforumposts-menu li { margin-bottom: 15px; }
*/
div.forum-poll-results { padding-left:0 }
.forum-viewtopic-customtitle {

View File

@ -27,4 +27,5 @@ div.news-empty { text-align:center; font-weight: bold }
div.checkboxes label.checkbox { display: block }
textarea.bbarea { margin:0; }
textarea.bbarea { margin:0; }
#chatbox-input-block { text-align:center }