mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Possible fix for #1684 - login failure with long email address.
This commit is contained in:
@@ -486,7 +486,7 @@ class e_admin_log
|
|||||||
|
|
||||||
$this->rldb->insert("audit_log", $insertQry);
|
$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}' ");
|
// $this->rldb->insert("audit_log", "0, ".intval($time_sec).', '.intval($time_usec).", '{$eventcode}', {$userid}, '{$userstring}', '{$userIP}', '{$title}', '{$detail}' ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -340,7 +340,12 @@ class userlogin
|
|||||||
|
|
||||||
$maxLength = varset($pref['loginname_maxlength'],30);
|
$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
|
$maxLength = 254; // Maximum email length
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user