Skip to content
This repository was archived by the owner on Feb 18, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Resources/translations/messages.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ change:
first: password
second: repeat password
submit: Set new password
user:
header:
title:
login: Login
4 changes: 4 additions & 0 deletions Resources/translations/messages.nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ change:
first: wachtwoord
second: herhaal wachtwoord
submit: Stel nieuw wachtwoord in
user:
header:
title:
login: Login
5 changes: 5 additions & 0 deletions Security/FormAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public function checkCredentials($credentials, UserInterface $user): bool
return true;
}

public function supports(Request $request)
{
return $request->getBasePath() === '/login' && $request->isMethod('POST');
}

protected function getLoginUrl(): string
{
return $this->router->generate('multi_user_login');
Expand Down
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
{
"name": "Dylan Moerman",
"email": "dylan@sumocoders.be"
},
{
"name": "Bruno Vitorino",
"email": "bruno@sumocoders.be"
}
],
"minimum-stability": "dev",
Expand Down