mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +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
|
||||
{
|
||||
$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);
|
||||
if ($this->isError() || !$result)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue