1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Possible fix for #1684 - login failure with long email address.

This commit is contained in:
Cameron
2016-06-06 13:36:00 -07:00
parent 01db7fff42
commit 3746e12c5b
2 changed files with 7 additions and 2 deletions

View File

@@ -486,7 +486,7 @@ class e_admin_log
$this->rldb->insert("audit_log", $insertQry);
return true;
return true;
// $this->rldb->insert("audit_log", "0, ".intval($time_sec).', '.intval($time_usec).", '{$eventcode}', {$userid}, '{$userstring}', '{$userIP}', '{$title}', '{$detail}' ");
}

View File

@@ -340,7 +340,12 @@ class userlogin
$maxLength = varset($pref['loginname_maxlength'],30);
if(varset($pref['allowEmailLogin'])==1) // Email login only
/*
* 2: Username/Email and Password
* 1: Email and Password
* 0: Username and Password
*/
if(!empty($pref['allowEmailLogin'])) // Email login only
{
$maxLength = 254; // Maximum email length
}