mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-30 22:59:52 +02:00
Fixed typos
This commit is contained in:
parent
63df16a369
commit
d04d743520
144 changed files with 263 additions and 265 deletions
|
@ -33,7 +33,7 @@ use Symfony\Component\Security\Http\SecurityEvents;
|
|||
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
|
||||
/**
|
||||
* This event listener shows an login successful flash to the user after login and write the login to event log.
|
||||
* This event listener shows a login successful flash to the user after login and write the login to event log.
|
||||
*/
|
||||
final class LoginSuccessSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
|
|
|
@ -31,8 +31,8 @@ use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
|||
use Symfony\Component\Security\Core\Security;
|
||||
|
||||
/**
|
||||
* This subscriber is used to log out a disabled user, as soon as he to do an request.
|
||||
* It is not possible for him to login again, afterwards.
|
||||
* This subscriber is used to log out a disabled user, as soon as he to do a request.
|
||||
* It is not possible for him to login again, afterward.
|
||||
*/
|
||||
final class LogoutDisabledUserSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
|
@ -50,7 +50,7 @@ final class LogoutDisabledUserSubscriber implements EventSubscriberInterface
|
|||
{
|
||||
$user = $this->security->getUser();
|
||||
if ($user instanceof User && $user->isDisabled()) {
|
||||
//Redirect to login
|
||||
//Redirect to log in
|
||||
$response = new RedirectResponse($this->urlGenerator->generate('logout'));
|
||||
$event->setResponse($response);
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ use Symfony\Component\HttpKernel\KernelEvents;
|
|||
use Symfony\Component\Security\Core\Security;
|
||||
|
||||
/**
|
||||
* The purpose of this event subscriber is to check if the permission schema of the current user is up to date and upgrade it automatically if needed.
|
||||
* The purpose of this event subscriber is to check if the permission schema of the current user is up-to-date and upgrade it automatically if needed.
|
||||
*/
|
||||
class UpgradePermissionsSchemaSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue