From b819fff67cf49066683338f8550535a7ad3997f8 Mon Sep 17 00:00:00 2001 From: joekurta Date: Thu, 27 Aug 2015 16:50:41 +0200 Subject: [PATCH 1/6] User top menu fixed --- Resources/views/base.html.twig | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Resources/views/base.html.twig b/Resources/views/base.html.twig index b075762..8a3a2e7 100644 --- a/Resources/views/base.html.twig +++ b/Resources/views/base.html.twig @@ -39,16 +39,16 @@ {% endblock %} From 929d482634deec6683c303f176fdb36784441892 Mon Sep 17 00:00:00 2001 From: joekurta Date: Tue, 1 Sep 2015 16:28:45 +0200 Subject: [PATCH 6/6] Sending mails fixtures --- Controller/SecurityController.php | 11 +++++++++-- Resources/config/routing.yml | 4 ++-- Resources/views/Email/login.html.twig | 2 +- Resources/views/Email/questions.html.twig | 2 +- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Controller/SecurityController.php b/Controller/SecurityController.php index b69c825..eb02b4a 100755 --- a/Controller/SecurityController.php +++ b/Controller/SecurityController.php @@ -23,7 +23,7 @@ class SecurityController extends Controller * @param Request $request * @return mixed */ - public function userLoginAction(Request $request, $activateHash) + public function userLoginAction(Request $request, $activateHash, $typeOf) { if($activateHash === null){ return $this->redirect($this->generateUrl('root')); @@ -55,7 +55,14 @@ public function userLoginAction(Request $request, $activateHash) $expires = time() + 60*60*24*183; $value = $this->generateCookieValue(get_class($user), $user->getUsername(), $expires, $user->getPassword()); - $return = $this->redirect($this->generateUrl(/*user_landing*/'question', array('event_id' => '17'))); + if ($typeOf === '0') + { + $return = $this->redirect($this->generateUrl('user_landing')); + } + else if ($typeOf === '1') + { + $return = $this->redirect($this->generateUrl('question', array('event_id' => '17'))); + } $return->headers->setCookie(new Cookie('userEditEnabled', '1', time()+60*60*24*90)); $presentations = $this->getDoctrine()->getRepository('LiveVotingBundle:Presentation')->findByUser($user); diff --git a/Resources/config/routing.yml b/Resources/config/routing.yml index 052cf25..8617e7c 100755 --- a/Resources/config/routing.yml +++ b/Resources/config/routing.yml @@ -155,8 +155,8 @@ admin_presentation_publish: #USER LOGIN ROUTING# user_login: - path: /login/{activateHash} - defaults: { _controller: LiveVotingBundle:Security:userLogin, activateHash: null } + path: /login/{activateHash}/{typeOf} + defaults: { _controller: LiveVotingBundle:Security:userLogin, activateHash: null, typeOf: null } user_login_check: path: /login_check diff --git a/Resources/views/Email/login.html.twig b/Resources/views/Email/login.html.twig index da21b6b..08562d8 100644 --- a/Resources/views/Email/login.html.twig +++ b/Resources/views/Email/login.html.twig @@ -1,5 +1,5 @@

Welcome to SummerCamp 2015!



-To login, click following link.

+To login, click following link.

After login you can see live schedule, vote for sessions, post comments and etc. @ SummerCamp LiveVoting site! \ No newline at end of file diff --git a/Resources/views/Email/questions.html.twig b/Resources/views/Email/questions.html.twig index 8016ada..f9cc3a9 100644 --- a/Resources/views/Email/questions.html.twig +++ b/Resources/views/Email/questions.html.twig @@ -2,7 +2,7 @@ Dear participant,

Thank you for being a part of PHP & eZ Publish Summer Camp 2015!

-We want to make the next one even better, and to do that we need YOUR help. On this link you will find 19 short questions that you can answer to in a few minutes.

+We want to make the next one even better, and to do that we need YOUR help. On this link you will find 19 short questions that you can answer to in a few minutes.

Please make time to answer the questions - it helps us immensely to make your experience next year the best one yet!