mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16:37:04 +00:00
[0014] Updated realmd to use account_access. This allows for different security levels per account for each realm in realmlist.
This commit is contained in:
parent
cca3dfd883
commit
1597b90686
11 changed files with 97 additions and 30 deletions
|
|
@ -390,7 +390,7 @@ bool AuthSocket::_HandleLogonChallenge()
|
|||
///- Get the account details from the account table
|
||||
// No SQL injection (escaped user name)
|
||||
|
||||
result = LoginDatabase.PQuery("SELECT sha_pass_hash,id,locked,last_ip,gmlevel,v,s FROM account WHERE username = '%s'", _safelogin.c_str());
|
||||
result = LoginDatabase.PQuery("SELECT a.sha_pass_hash,a.id,a.locked,a.last_ip,aa.gmlevel,a.v,a.s FROM account a LEFT JOIN account_access aa ON (a.id = aa.id) WHERE username = '%s'", _safelogin.c_str());
|
||||
if (result)
|
||||
{
|
||||
///- If the IP is 'locked', check that the player comes indeed from the correct IP address
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue