mirror of
https://github.com/gamaio/UnPS-API.git
synced 2024-12-21 09:42:40 +00:00
Fix UPDATE query... again
My headache is getting worse from all this sql stuff...
This commit is contained in:
parent
5aaec9e517
commit
e80774a2bd
@ -382,7 +382,7 @@ class api{
|
|||||||
$salt = $password[1];
|
$salt = $password[1];
|
||||||
$password = $password[0];
|
$password = $password[0];
|
||||||
|
|
||||||
$sql = "UPDATE `logins` (`password`, `salt`, `iterations`) VALUES ('$password', '$salt', '$iterations') WHERE `email` = '$email';";
|
$sql = "UPDATE `logins` SET `password`='$password', `salt`='$salt', `iterations`='$iterations' WHERE `email` = '$email';";
|
||||||
if(!$result = $udb->query($sql)) return 'ERROR: ['.$udb->error.']';
|
if(!$result = $udb->query($sql)) return 'ERROR: ['.$udb->error.']';
|
||||||
return "Password changed";
|
return "Password changed";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user