mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 08:03:49 +00:00
apply rector rules: symfony **UP TO** 44
This commit is contained in:
@@ -114,8 +114,8 @@ class PasswordController extends AbstractController
|
||||
|
||||
if (null === $user) {
|
||||
$this->eventDispatcher->dispatch(
|
||||
PasswordRecoverEvent::INVALID_TOKEN,
|
||||
new PasswordRecoverEvent($token, null, $request->getClientIp())
|
||||
new PasswordRecoverEvent($token, null, $request->getClientIp()),
|
||||
PasswordRecoverEvent::INVALID_TOKEN
|
||||
);
|
||||
|
||||
throw $this->createNotFoundException(sprintf('User %s not found', $username));
|
||||
@@ -123,8 +123,8 @@ class PasswordController extends AbstractController
|
||||
|
||||
if (true !== $this->tokenManager->verify($hash, $token, $user, $timestamp)) {
|
||||
$this->eventDispatcher->dispatch(
|
||||
PasswordRecoverEvent::INVALID_TOKEN,
|
||||
new PasswordRecoverEvent($token, $user, $request->getClientIp())
|
||||
new PasswordRecoverEvent($token, $user, $request->getClientIp()),
|
||||
PasswordRecoverEvent::INVALID_TOKEN
|
||||
);
|
||||
|
||||
return new Response('Invalid token', Response::HTTP_FORBIDDEN);
|
||||
@@ -214,16 +214,16 @@ class PasswordController extends AbstractController
|
||||
);
|
||||
|
||||
$this->eventDispatcher->dispatch(
|
||||
PasswordRecoverEvent::ASK_TOKEN_SUCCESS,
|
||||
new PasswordRecoverEvent(null, $user, $request->getClientIp())
|
||||
new PasswordRecoverEvent(null, $user, $request->getClientIp()),
|
||||
PasswordRecoverEvent::ASK_TOKEN_SUCCESS
|
||||
);
|
||||
|
||||
return $this->redirectToRoute('password_request_recover_confirm');
|
||||
}
|
||||
} elseif ($form->isSubmitted() && false === $form->isValid()) {
|
||||
$this->eventDispatcher->dispatch(
|
||||
PasswordRecoverEvent::ASK_TOKEN_INVALID_FORM,
|
||||
new PasswordRecoverEvent(null, null, $request->getClientIp())
|
||||
new PasswordRecoverEvent(null, null, $request->getClientIp()),
|
||||
PasswordRecoverEvent::ASK_TOKEN_INVALID_FORM
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user