fix: resolve PHPStan static analysis warnings
This commit is contained in:
1 parent
ea424ad0a8
commit
4845ff0739
86 files changed
+2335
-1206
No files matched your search
@@ -58,11 +58,13 @@ 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