I'm using the following code to redirect users at login (Drupal 6):
function hook_user($op, &$edit, &$account, $category = NULL) {
switch ($op) {
case 'login':
if (_cns_user($account)) {
unset($_GET['destination']);
unset($_REQUEST['destination']);
drupal_goto('user/'. $account->uid .'/training', NULL, 'steps');
}
break;
}
}
The problem I have is that this doesn't allow for users to be redirected to the password reset page (user/reset/) when needed. Is there a way to prevent the reset url from being redirected? Thanks in advance.