I want to change my auth methode from giving the username/password to giving the user ID/password.
I checked the auth.php file ( in /phpbb/auth/auth.php ) which includes the login() function. I've found a query :
Code: Select all
$sql = 'SELECT user_id, username, user_password, user_passchg, user_pass_convert, user_email, user_type, user_login_attempts
FROM ' . USERS_TABLE . "
WHERE username_clean = '" . $this->db->sql_escape($username_clean) . "'";
And turned it into :
Code: Select all
$sql = 'SELECT user_id, username, user_password, user_passchg, user_email, user_type
FROM ' . USERS_TABLE . "
WHERE user_id == ' . $user_id . '";
Anyone knows how to handle a login using the user_id column ?
Thanks !