Revert "fix: resolve PHPStan static analysis warnings"
This reverts commit b885e644a8.
This commit is contained in:
1 parent
b885e644a8
commit
ea424ad0a8
84 files changed
+1190
-2330
No files matched your search
@@ -58,13 +58,11 @@ class UserController extends Controller
|
||||
if (!$user) {
|
||||
return $this->fail([400, __('The user does not exist')]);
|
||||
}
|
||||
if (
|
||||
!Helper::multiPasswordVerify(
|
||||
$user->password_algo,
|
||||
$user->password_salt,
|
||||
$request->input('old_password'),
|
||||
$user->password
|
||||
)
|
||||
if (!Helper::multiPasswordVerify(
|
||||
$user->password_algo,
|
||||
$user->password_salt,
|
||||
$request->input('old_password'),
|
||||
$user->password)
|
||||
) {
|
||||
return $this->fail([400, __('The old password is wrong')]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user