1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

update account.php

This commit is contained in:
Bradley Schofield 2022-04-13 10:45:17 +00:00
parent 37d0de8291
commit 812249ebcb

View file

@ -1376,7 +1376,6 @@ App::patch('/v1/account/password')
/** @var Appwrite\Stats\Stats $usage */
// Check old password only if its an existing user.
if ($user->getAttribute('passwordUpdate') !== 0 && !Auth::passwordVerify($oldPassword, $user->getAttribute('password'))) { // Double check user password
throw new Exception('Invalid credentials', 401, Exception::USER_INVALID_CREDENTIALS);
}