mirror of
https://github.com/filegator/filegator.git
synced 2025-08-09 22:47:00 +02:00
refactoring
This commit is contained in:
@@ -67,10 +67,6 @@ class AuthController
|
||||
return $response->json($errors->firstOfAll(), 422);
|
||||
}
|
||||
|
||||
if ($auth->user() === null) {
|
||||
return $response->json(['oldpassword' => 'Wrong password'], 422);
|
||||
}
|
||||
|
||||
if (! $auth->authenticate($auth->user()->getUsername(), $request->input('oldpassword'))) {
|
||||
return $response->json(['oldpassword' => 'Wrong password'], 422);
|
||||
}
|
||||
|
Reference in New Issue
Block a user