Skip to content

Commit

Permalink
Merge pull request #78 from ConradBunton/patch-2
Browse files Browse the repository at this point in the history
Update account.login.php
  • Loading branch information
Josh authored Dec 13, 2017
2 parents 057d166 + b149053 commit 0f2c984
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/account/account.login.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
if(isset($_GET['exec']) && $_GET['exec'] == "login")
{

$login = $_POST['login'];
$login = $RDB->real_escape_string($_POST['login']);
$pass = $Account->sha_password($login, $_POST['pass']);
$account_id = $RDB->selectCell("SELECT `id` FROM `account` WHERE `username` = '".$_POST['login']."' LIMIT 1");
$account_id = $RDB->selectCell("SELECT `id` FROM `account` WHERE `username` = '$login' LIMIT 1");

// initiate the login array, and send it in
$params = array('username' => $login, 'sha_pass_hash' => $pass);
Expand Down

0 comments on commit 0f2c984

Please sign in to comment.