PDA

View Full Version : How To Redirect login.php?do=lostpw


zahool
20 Aug 2007, 23:26
Hello All,

I want to redirect login.php?do=lostpw to some other url. Can someone please guide me.

Thanks

testebr
21 Aug 2007, 11:37
I have same question

Princeton
26 Aug 2007, 16:54
use the login_redirect hook

patrickb
28 Aug 2007, 04:18
The login_redirect hook would not work. It is only called by do_login_redirect when login.php?do=login is called.

I have simply replaced the template "lostpw" template and put a link to my external password reset page.

If you want to disable the password reset, you can also use the reset_password hook to display an error message whenever it is called...

igal_auto123
26 Aug 2008, 19:07
I still do not see any way to redirect a user to a custom 'pwd recovery' page.

"login.php?do=lostpw" is hardcoded all over the phrases, so it means all of them have to be modified. And "reset_password" hook gets executed AFTER the password is generated and saved.

There should be some hook where "do=lostpw" is processed.

Paul M
26 Aug 2008, 19:46
Intercept it via the global_setup_complete hook

igal_auto123
27 Aug 2008, 13:20
Intercept it via the global_setup_complete hook

Thanks a bunch for the idea! That's what I call thinking outside the box )))))

I used init_startup, since it is already in use.