diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-10-02 14:51:41 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2015-10-03 13:31:48 +0200 |
commit | 1210dae10589515d6f3824c75639342c5e1d52dd (patch) | |
tree | a26f0401a6f980f3ef96d3dc76ff3303b2943720 /app | |
parent | 772d8c4b93adc36baefda93ec37007e4a85321de (diff) | |
download | wallabag-1210dae10589515d6f3824c75639342c5e1d52dd.tar.gz wallabag-1210dae10589515d6f3824c75639342c5e1d52dd.tar.zst wallabag-1210dae10589515d6f3824c75639342c5e1d52dd.zip |
remove old implementation for login/register/recover
Diffstat (limited to 'app')
-rw-r--r-- | app/AppKernel.php | 1 | ||||
-rw-r--r-- | app/config/config.yml | 2 | ||||
-rw-r--r-- | app/config/routing.yml | 23 | ||||
-rw-r--r-- | app/config/security.yml | 4 |
4 files changed, 18 insertions, 12 deletions
diff --git a/app/AppKernel.php b/app/AppKernel.php index 6f8c3a6d..6315fcde 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php | |||
@@ -27,6 +27,7 @@ class AppKernel extends Kernel | |||
27 | new Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle(), | 27 | new Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle(), |
28 | new Lexik\Bundle\FormFilterBundle\LexikFormFilterBundle(), | 28 | new Lexik\Bundle\FormFilterBundle\LexikFormFilterBundle(), |
29 | new FOS\OAuthServerBundle\FOSOAuthServerBundle(), | 29 | new FOS\OAuthServerBundle\FOSOAuthServerBundle(), |
30 | new Wallabag\UserBundle\WallabagUserBundle(), | ||
30 | ); | 31 | ); |
31 | 32 | ||
32 | if (in_array($this->getEnvironment(), array('dev', 'test'))) { | 33 | if (in_array($this->getEnvironment(), array('dev', 'test'))) { |
diff --git a/app/config/config.yml b/app/config/config.yml index 3c63ded3..a4d18c6d 100644 --- a/app/config/config.yml +++ b/app/config/config.yml | |||
@@ -158,7 +158,7 @@ liip_theme: | |||
158 | fos_user: | 158 | fos_user: |
159 | db_driver: orm | 159 | db_driver: orm |
160 | firewall_name: main | 160 | firewall_name: main |
161 | user_class: Wallabag\CoreBundle\Entity\User | 161 | user_class: Wallabag\UserBundle\Entity\User |
162 | registration: | 162 | registration: |
163 | form: | 163 | form: |
164 | type: wallabag_user_registration | 164 | type: wallabag_user_registration |
diff --git a/app/config/routing.yml b/app/config/routing.yml index dabb48fa..5fa28fba 100644 --- a/app/config/routing.yml +++ b/app/config/routing.yml | |||
@@ -1,3 +1,8 @@ | |||
1 | wallabag_user: | ||
2 | resource: "@WallabagUserBundle/Controller/" | ||
3 | type: annotation | ||
4 | prefix: / | ||
5 | |||
1 | wallabag_api: | 6 | wallabag_api: |
2 | resource: "@WallabagApiBundle/Resources/config/routing.yml" | 7 | resource: "@WallabagApiBundle/Resources/config/routing.yml" |
3 | prefix: / | 8 | prefix: / |
@@ -10,15 +15,15 @@ doc-api: | |||
10 | resource: "@NelmioApiDocBundle/Resources/config/routing.yml" | 15 | resource: "@NelmioApiDocBundle/Resources/config/routing.yml" |
11 | prefix: /api/doc | 16 | prefix: /api/doc |
12 | 17 | ||
13 | login: | 18 | #login: |
14 | pattern: /login | 19 | # pattern: /login |
15 | defaults: { _controller: WallabagCoreBundle:Security:login } | 20 | # defaults: { _controller: WallabagCoreBundle:Security:login } |
16 | 21 | # | |
17 | login_check: | 22 | #login_check: |
18 | pattern: /login_check | 23 | # pattern: /login_check |
19 | 24 | # | |
20 | logout: | 25 | #logout: |
21 | path: /logout | 26 | # path: /logout |
22 | 27 | ||
23 | rest : | 28 | rest : |
24 | type : rest | 29 | type : rest |
diff --git a/app/config/security.yml b/app/config/security.yml index 79a07c48..d7d8c12b 100644 --- a/app/config/security.yml +++ b/app/config/security.yml | |||
@@ -8,7 +8,7 @@ security: | |||
8 | 8 | ||
9 | providers: | 9 | providers: |
10 | administrators: | 10 | administrators: |
11 | entity: { class: WallabagCoreBundle:User, property: username } | 11 | entity: { class: WallabagUserBundle:User, property: username } |
12 | fos_userbundle: | 12 | fos_userbundle: |
13 | id: fos_user.user_provider.username | 13 | id: fos_user.user_provider.username |
14 | 14 | ||
@@ -49,6 +49,6 @@ security: | |||
49 | - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY } | 49 | - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
50 | - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } | 50 | - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
51 | - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } | 51 | - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } |
52 | - { path: ^/forgot-password, roles: IS_AUTHENTICATED_ANONYMOUSLY } | 52 | - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } |
53 | - { path: /(unread|starred|archive).xml$, roles: IS_AUTHENTICATED_ANONYMOUSLY } | 53 | - { path: /(unread|starred|archive).xml$, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
54 | - { path: ^/, roles: ROLE_USER } | 54 | - { path: ^/, roles: ROLE_USER } |