mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 12:02:24 +09:00
Fix isValidOldPassword() not working in new DB class
This commit is contained in:
parent
dfc1082c85
commit
305d045bf6
1 changed files with 2 additions and 1 deletions
|
|
@ -614,7 +614,8 @@ class DB
|
||||||
*/
|
*/
|
||||||
public function isValidOldPassword(string $password, string $saved_password): bool
|
public function isValidOldPassword(string $password, string $saved_password): bool
|
||||||
{
|
{
|
||||||
$stmt = $this->_handle->query('SELECT' . ' ' . 'PASSWORD(?) AS pw1, OLD_PASSWORD(?) AS pw2', $password, $password);
|
$stmt = $this->_handle->prepare('SELECT' . ' ' . 'PASSWORD(?) AS pw1, OLD_PASSWORD(?) AS pw2');
|
||||||
|
$stmt->execute([$password, $password]);
|
||||||
$result = $this->_fetch($stmt);
|
$result = $this->_fetch($stmt);
|
||||||
if ($this->isError() || !$result)
|
if ($this->isError() || !$result)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue