One time login password change is also redirected

codemuppet - August 4, 2009 - 19:47
Project:Front Page
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Would it be possible to specify paths that would not be redirected e.g user/xxxxx/edit, currently the change password redirect is being ignored after using the one time login feature.

#1

rapsli - September 8, 2009 - 09:08

I do have the same problem... working on a patch

#2

rapsli - September 8, 2009 - 12:02

<?php
function front_page_user($op, &$edit, &$account, $category = NULL){   
    if(
$op == 'load'){
     if(!
$account->login && $account->uid != 0 && $account->access && arg(5) == 'login'){
         
drupal_set_message(t('This is your first login. Make sure to !url first.',array('!url'=>l(t('modify your password'),'user/'.$account->uid.'/edit'))));
       }
    }
}
?>

#3

Dublin Drupaller - November 6, 2009 - 15:38
Status:active» needs review

thanks for the patch rapsli. I'll aim to include this in the next update of the module (for version 7.x)

 
 

Drupal is a registered trademark of Dries Buytaert.