mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 16:37:06 +00:00
Fixed: restore RA login work.
Provided correect number login query args. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
f187226451
commit
a0ab11bb17
1 changed files with 4 additions and 1 deletions
|
|
@ -194,7 +194,10 @@ void RASocket::OnRead()
|
|||
loginDatabase.escape_string(login);
|
||||
loginDatabase.escape_string(pw);
|
||||
|
||||
QueryResult *check = loginDatabase.PQuery("SELECT 1 FROM account WHERE username = '%s' AND sha_pass_hash=SHA1(CONCAT(username,':','%s'))", login.c_str(), pw.c_str());
|
||||
QueryResult *check = loginDatabase.PQuery(
|
||||
"SELECT 1 FROM account WHERE username = '%s' AND sha_pass_hash=SHA1(CONCAT(username,':','%s'))",
|
||||
login.c_str(), login.c_str(), pw.c_str());
|
||||
|
||||
if(check)
|
||||
{
|
||||
delete check;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue