Merge pull request #2 from gnieark/registerform

logout ok
This commit is contained in:
Gnieark 2019-12-27 13:23:28 +01:00 committed by GitHub
commit 44561afbbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 5 deletions

View File

@ -33,7 +33,7 @@
"doctrine/doctrine-fixtures-bundle": "^3.3",
"symfony/debug-pack": "*",
"symfony/maker-bundle": "^1.14",
"symfony/profiler-pack": "*",
"symfony/profiler-pack": "^1.0",
"symfony/test-pack": "*"
},
"config": {

2
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "b20f46a7fddb0abe3c5ff55d45b55de4",
"content-hash": "ac514249a57f2920364612f8e4958797",
"packages": [
{
"name": "doctrine/annotations",

View File

@ -1,11 +1,13 @@
index:
path: /
controller: App\Controller\HomeController::index
login:
app_login:
path: /login
controller: App\Controller\SecurityController::login
methods: GET|POST
app_logout:
path: /logout
methods: GET
registerForm:
path: /register
controller: App\Controller\SecurityController::showRegisterForm

View File

@ -99,6 +99,6 @@ class LoginFormAuthentificatorAuthenticator extends AbstractFormLoginAuthenticat
protected function getLoginUrl()
{
return $this->urlGenerator->generate('login');
return $this->urlGenerator->generate('app_login');
}
}