From 7097cac8638f1a8a070b6917b45ae10fa527181b Mon Sep 17 00:00:00 2001 From: naomi Date: Fri, 27 Apr 2018 16:09:38 +0200 Subject: [PATCH] Removed redirect to home page after login The way it was done, it didn't work with password reset --- zencrm.module | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/zencrm.module b/zencrm.module index f094f22..d9734d7 100644 --- a/zencrm.module +++ b/zencrm.module @@ -38,15 +38,3 @@ function zencrm_page_attachments(array &$page) { $page['#attached']['library'][] = 'zencrm/opencase-lib'; } -/** - * Implements hook_user_login(). - */ -function zencrm_user_login(\Drupal\user\UserInterface $account) { - // Default login destination to the dashboard. - $current_request = \Drupal::service('request_stack')->getCurrentRequest(); - if (!$current_request->query->get('destination')) { - $current_request->query->set( - 'destination', '/' - ); - } -}