
01-26-2007, 02:17 AM
|
 |
|
|
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Email login?
Is there a working hack that allows the users to login using their email instead of their user name?
I had one for 3.5 but lost it. I need one for 3.6.X
lol found it...
Quote:
Originally Posted by malmazan
These dats (3.6.4) is more like:
Loor for :
PHP Code:
if ($vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, infractiongroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE username = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'"))
And replace by:
PHP Code:
// Start hack login with mail address (MarcoH64 Marco van Herwaarden) // original 3 6 4 add infractiongroup ids to original hack if ($vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, infractiongroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE username = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'")) if (!$vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, infractiongroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE username = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'")) { $vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, infractiongroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE email = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'"); } if ($vbulletin->userinfo) // End hack login with mail address (MarcoH64 Marco van Herwaarden)
It's the same thing, though "infractiongroupids, " is added to the query list
|
|