How to redirect to my home page from forget password in the FEU

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
holy_knight
Forum Members
Forum Members
Posts: 17
Joined: Sun Oct 14, 2007 1:06 pm

How to redirect to my home page from forget password in the FEU

Post by holy_knight »

When user ends process of forget password (sending mail to user, then going to site, then user must enter his new password) he goes on login page with form with username and password. I wish to make that user goes on home page or some other page on the site because I put login form in  header of the site.

I found these code in the FronEndUsers.module.php.

Code: Select all

    // and display a nice warm fuzzy message
    // todo
    $this->myRedirect( $id, 'default', $returnid );
    break;
but after many tries to replace this code I didn't success. If someone have done that or knows how to do that pls help.
holy_knight
Forum Members
Forum Members
Posts: 17
Joined: Sun Oct 14, 2007 1:06 pm

Re: How to redirect to my home page from forget password in the FEU

Post by holy_knight »

I think that I am solve the problem. In file FrontEndUsers.module.php

replace

Code: Select all

$this->myRedirect( $id, 'default', $returnid );
with

Code: Select all

$this->RedirectContent( $returnid );
Last edited by holy_knight on Tue Oct 23, 2007 9:14 pm, edited 1 time in total.
Post Reply

Return to “Developers Discussion”