Moderator: diafero
(2021:03:15-18:55:31.959469)[140346883757824] AUTH: player FrankFrankly (IP: XXX, game server [0][85.214.18.84:5000]):
(2021:03:15-18:55:32.447624)[140346883757824] CGAS error message: 11
Password is wrong
0
To fill it, you need to patch include/auth/auth_db.php. After the following block:
// User inactive...
if ($row['user_type'] == USER_INACTIVE || $row['user_type'] == USER_IGNORE)
{
return array(
'status' => LOGIN_ERROR_ACTIVE,
'error_msg' => 'ACTIVE_ERROR',
'user_row' => $row,
);
}
that should end at line 184, insert this code:
// SAVE md5hash OF PASSWORD FOR CGAS BEGIN
$sql = 'SELECT user_id FROM cgas_passwords WHERE user_id='. $row['user_id'];
$result = $db->sql_query($sql);
$cgas = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
if (!$cgas) {
$sql = 'INSERT INTO cgas_passwords (user_id, user_password) VALUES ('.$row['user_id'].', \''.md5($password).'\')';
}
else {
$sql = 'UPDATE cgas_passwords SET user_password=\''.md5($password).'\' WHERE user_id='. $row['user_id'];
}
$db->sql_query($sql);
// SAVE md5hash OF PASSWORD FOR CGAS END
Users browsing this forum: No registered users and 4 guests