• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved [Znote Acc] need help!

undead mage

Active Member
Joined
Mar 25, 2012
Messages
364
Solutions
2
Reaction score
47
Location
Amsterdam
I have this problem with my znote site its working but I can login on the server with the accounts that are made on the site :/ I do see the characters on the highscore list and in my database

Site: oujda.sytes.net
Client: 10.10

Server: TFS 0.3.7_SVN
Site: znoteAACv1.4public

@Znote @HalfAway @cbrm @EvilSkillz @Limos
 
Last edited by a moderator:
It's working fine for me, but I'm testing with latest Znote AAC. :p

Edit: I'll see if I can reproduce your issue with v1.4

Edit: Remove sha1 from the function user_login_id_03 as well, $password = sha1($salt.$password);
 
Still isn't working :/

Code:
// Get user login ID from username and password
function user_login_id($username, $password) {
    $username = sanitize($username);
    $password = ($password);
    return mysql_result(mysql_query("SELECT `id` FROM `accounts` WHERE `name`='$username' AND `password`='$password';"), 0, 'id');
}
 
Because it's the wrong function, the correct one is user_login_id_03
 
aah i've changed that back and changed this but still nothing T-T

Code:
// TFS 0.3+ compatibility.
function user_login_id_03($username, $password) {
    if (config('salt') === true) {
        if (user_exist($username)) {
            $user_id = user_id($username);
            $username = sanitize($username);
           
            $salt = mysql_result(mysql_query("SELECT `salt` FROM `accounts` WHERE `id`='$user_id';"), 0, 'salt');
            if (!empty($salt)) $password = sha1($salt.$password);
            else $password = ($password);
            return mysql_result(mysql_query("SELECT `id` FROM `accounts` WHERE `name`='$username' AND `password`='$password';"), 0, 'id');
        }
    } else return user_login_id($username, $password);
}
 
You're using salt so you're supposed to change
PHP:
if (!empty($salt)) $password = sha1($salt.$password);
to
PHP:
if (!empty($salt)) $password = $salt.$password;
 
Back
Top