diff --git a/app/Resources/FOSUserBundle/views/Security/login.html.twig b/app/Resources/FOSUserBundle/views/Security/login.html.twig index 1ae6d77c..78f1fa63 100755 --- a/app/Resources/FOSUserBundle/views/Security/login.html.twig +++ b/app/Resources/FOSUserBundle/views/Security/login.html.twig @@ -19,16 +19,17 @@ Créer un compte -

- -

Mot de passe oublié? + + + Se connecter à la démo

+
diff --git a/app/Resources/HWIOAuthBundle/views/Connect/login.html.twig b/app/Resources/HWIOAuthBundle/views/Connect/login.html.twig index 03a26456..cda49207 100755 --- a/app/Resources/HWIOAuthBundle/views/Connect/login.html.twig +++ b/app/Resources/HWIOAuthBundle/views/Connect/login.html.twig @@ -61,7 +61,7 @@ {#

#}

- Créer un compte diff --git a/app/Resources/views/default/footer.html.twig b/app/Resources/views/default/footer.html.twig index 44a21139..a1cfe087 100755 --- a/app/Resources/views/default/footer.html.twig +++ b/app/Resources/views/default/footer.html.twig @@ -1,13 +1,27 @@

diff --git a/app/Resources/views/default/main-screen.html.twig b/app/Resources/views/default/main-screen.html.twig index 7025004b..1321eb8e 100755 --- a/app/Resources/views/default/main-screen.html.twig +++ b/app/Resources/views/default/main-screen.html.twig @@ -43,7 +43,6 @@
-
diff --git a/app/config/security.yml b/app/config/security.yml index 6cddf9ff..850be70d 100755 --- a/app/config/security.yml +++ b/app/config/security.yml @@ -34,6 +34,7 @@ security: access_control: - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/dashboard$, role: IS_AUTHENTICATED_REMEMBERED } + - { path: ^/history$, role: IS_AUTHENTICATED_REMEMBERED } - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/logged, role: IS_AUTHENTICATED_REMEMBERED } diff --git a/assets/js/parts/globalActions.js b/assets/js/parts/globalActions.js index 32d1acc3..48eb5d39 100644 --- a/assets/js/parts/globalActions.js +++ b/assets/js/parts/globalActions.js @@ -84,5 +84,13 @@ $(document).ready(function () { } startIntro() }) + + // demo login + $('#demo_login_btn').on('click', function (){ + $('#username').val('demo'); + $('#password').val('demo'); + $('#_submit').click(); + + }) // $('#introjs_start').click(); });