mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-27 12:18:54 +02:00
Applied symplify rules to codebase.
This commit is contained in:
parent
2f20d90041
commit
388e847b17
136 changed files with 1370 additions and 789 deletions
|
@ -37,7 +37,7 @@ use Symfony\Component\Security\Http\HttpUtils;
|
|||
* to setup a 2FA method (enforcement can be set per group).
|
||||
* In this cases the user is unable to access sites other than the whitelisted (see ALLOWED_ROUTES).
|
||||
*/
|
||||
class PasswordChangeNeededSubscriber implements EventSubscriberInterface
|
||||
final class PasswordChangeNeededSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
/**
|
||||
* @var string[] The routes the user is allowed to access without being redirected.
|
||||
|
@ -51,7 +51,9 @@ class PasswordChangeNeededSubscriber implements EventSubscriberInterface
|
|||
'logout',
|
||||
];
|
||||
|
||||
/** @var string The route the user will redirected to, if he needs to change this password */
|
||||
/**
|
||||
* @var string The route the user will redirected to, if he needs to change this password
|
||||
*/
|
||||
public const REDIRECT_TARGET = 'user_settings';
|
||||
protected $security;
|
||||
protected $flashBag;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue