mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Removed redirect to userSettings in RedirectController
We do this in an EventSubscriber now, so this is not needed anymore.
This commit is contained in:
parent
311a342634
commit
7e0e83ef15
2 changed files with 0 additions and 31 deletions
|
@ -59,13 +59,6 @@ class RedirectController extends AbstractController
|
|||
$locale = $user->getLanguage();
|
||||
}
|
||||
|
||||
//Check if the user needs to change the password. In that case redirect him to settings_page
|
||||
if ($user instanceof User && $user->isNeedPwChange()) {
|
||||
$this->session->getFlashBag()->add('warning', $this->translator->trans('flash.password_change_needed'));
|
||||
|
||||
return $this->redirectToRoute('user_settings', ['_locale' => $locale]);
|
||||
}
|
||||
|
||||
//$new_url = str_replace($request->getPathInfo(), '/' . $locale . $request->getPathInfo(), $request->getUri());
|
||||
$new_url = $request->getUriForPath('/'.$locale.$request->getPathInfo());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue