Removed redirect to home page after login

The way it was done, it didn't work with password reset
This commit is contained in:
naomi 2018-04-27 16:09:38 +02:00
parent aed0aa7b07
commit 7097cac863

View File

@ -38,15 +38,3 @@ function zencrm_page_attachments(array &$page) {
$page['#attached']['library'][] = 'zencrm/opencase-lib'; $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', '/'
);
}
}