Forgot password display?

Discussion in 'aMember Pro v.4' started by wallpaper_01, Jul 3, 2012.

  1. wallpaper_01

    wallpaper_01 Member

    Joined:
    Mar 9, 2011
    Messages:
    116
    Hi

    Im using Joomla! and have the login widget for amember in the sidebar, but this does not come with a forgot password, can I get this in there too? Whats the best way?

    Im using Jumi to add in the php.

    Thanks

    Dan
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Dan,
    What widget you use in Joomla, is it widget from aMember v3?
  3. wallpaper_01

    wallpaper_01 Member

    Joined:
    Mar 9, 2011
    Messages:
    116
    No amember 4, I mean this below:

    <?php

    include "../amember/library/Am/Lite.php";
    echo Am_Lite::getInstance()->renderLoginForm();

    ?>

    It shows the login, is there anyway to show the forgot password box too?
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Edit /amember/library/Am/Lite.php and change this function:
    PHP:
        public function renderLoginForm($redirect null)
        {
            return 
    '<form method="POST" action="'
                
    $this->getLoginURL($redirect)
                . 
    '">'
                
    '<label for="form-amember_login">E-Mail Address or Username</label>'
                
    '<input type="text" name="amember_login" id="form-amember_login" />'
                
    '<label for="form-amember_pass">Password</label>'
                
    '<input type="password" name="amember_pass" id="form-amember_pass" />'
                
    '<input type="submit" value="Login" />'
                
    '</form>';
        }

    The simplest way is to just add forget password link which will point to /amember/member

Share This Page