cotonti.com : Login With Email https://www.cotonti.com Последние сообщения в теме Cotonti en Mon, 08 Dec 2025 23:03:10 -0000 JonnyM
Open the file system/core/users/users.auth.inc.php and find the following line of code ( line nr: 44):
$sql = sed_sql_query("SELECT user_id, user_maingrp, user_banexpire, user_skin, user_theme, user_lang FROM $db_users WHERE user_password='$rmdpass' AND user_name='".sed_sql_prep($rusername)."'");

and change it into:

$sql = sed_sql_query("SELECT user_id, user_maingrp, user_banexpire, user_skin, user_theme, user_lang FROM $db_users WHERE user_password='$rmdpass' AND user_email='".sed_sql_prep($rusername)."'");

Notice how all I did was change the user_name part in the SQL WHERE clause into user_email.

Now I haven't tested this more than logged in once, so it's up to you and at your own risk if you want to use this core hack. But there shouldn't be any problems as far as I can tell.]]>
чт, 21 мая 2009 21:52:47 -0000
GHengeveld чт, 21 мая 2009 08:54:22 -0000 Lombi

It is, I had this running on two domains with the beta url system, but the one posted doesnt do that since it's crashing with the category system.

But yea, possible.]]>
чт, 21 мая 2009 07:06:33 -0000
chobblr
edit: also is it possable for usernames to be like chobblr.cottonti.com ?]]>
чт, 21 мая 2009 05:24:48 -0000
Lombi чт, 21 мая 2009 05:04:47 -0000 chobblr чт, 21 мая 2009 05:00:22 -0000 Lombi чт, 21 мая 2009 04:54:27 -0000 chobblr чт, 21 мая 2009 04:53:24 -0000