How do I create a new reset password page

Discussion in 'Customization & add-ons' started by rance, Apr 3, 2015.

  1. rance

    rance aMember Pro Customer

    Joined:
    Dec 1, 2012
    Messages:
    42
    Use Case:
    We have an affiliate that adds new users via API. Once user is added we want to send a welcome email with a link to a page to "Assign your password". This will use the reset password function and email. We just want the page to only have the reset password function and frame it with "Welcome" verbiage.

    How do I:
    I am duplicating and modify the _login.phtmp and login.phtml pages. After saving as _activate.phtml and activate.phtml how to set up so that www.example.com/amemeber/activate can be accessed?
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Please have a look
    http://www.amember.com/docs/API/Samples

    You need to create the following controller controller
    PHP:
    class ActivateController extends Am_Controller
    {
          function 
    indexAction()
          {
               
    $this->view->title "Activation";
               
    $this->view->display('activate.phtml');
          }
    }
    You can put this controller to site.php file
    http://www.amember.com/docs/Site.php_file
  3. rance

    rance aMember Pro Customer

    Joined:
    Dec 1, 2012
    Messages:
    42
    This worked perfect.
    Actually better than expected. I have wanted to remove the password reset from the login page and this also addresses how to do that.
    Thanks.

Share This Page