The redirection after the login process is done via the zen_redirect() function in the includes/modules/pages/login/header_php.php file. Look at lines 130-142 (this may vary).