We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16085
    • 203 Posts
    I’ve got a forgot-password document with the default &resetTpl as the form. When I get the reset password link via email, click it it takes me to the forgot-password document but I get the activeTpl placed above the &resetTpl.
    [!WebLoginPE? &resetTpl=`` &activateTpl=`members-activatePassword`!]
    [+wlpe.message+]
    <div id="wlpeReset" class="passwordreset-form">
        <form id="wlpeResetForm" name="wlpeResetForm" action="/[~[*id*]~]" method="POST">
            <fieldset id="wlpeResetFieldset">
                <h3 id="wlpeResetInfo">Don't Worry, it happens to everyone.</h3>
                <p>Enter your email address in the field below and we will set a temporary password for your account.</p>
                <p>This temporary password will be emailed to you with instructions on how to activate it.</p>
                <label for="wlpeResetEmail">Your Email Address
                <input type="text" id="wlpeResetEmail" name="email" />
                </label>
                
            </fieldset>
            <fieldset id="wlpeResetButtonFieldset">
                <button type="submit" id="wlpeResetButton" name="service" value="resetpassword">Send Password</button>
                <button type="submit" id="wlpeResetCancelButton" name="service" value="cancel">Cancel</button>
            </fieldset>
        </form>
    </div>
    I thought the activate would go to a seperate document, or do I need a call so the two &resetTpl and &activateTpl swap out. Or can I modify the "service" value to go to a different document.

    Just a bit confused why the two are auto switching if they call on the same page. huh
      • 16085
      • 203 Posts
      I’ve tried changing the forgot-password document to just contain the call [!WebLoginPE? &ype=`simple` &successTpl=`` &loginFormTpl=`` &resetTpl=`members-forgotPassword` &activateTpl=`&activateTpl=`members-activatePassword`!] but the page doesn’t display either.

      If I paste the chunk members-forgotpassword (default reset form) I get the form.. but submit the form I end up on the same page with two copies of the form. If I click the active email link I ended up on the forgot-password page but with the active form, reset form..

      I seem to be getting confused or mixing up the calls and Tpls. Does anyone have a simple reset, activate setup step by step?

      Thanks
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Does your snippet call actually contain this?
        &activateTpl=`&activateTpl=`members-activatePassword`

        If so, that’s definitely a problem.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 16085
          • 203 Posts
          @sottwell, thanks Susan. Basically it was my misunderstanding of WebLoginPE. I thought the login page could be broken in to piceces for example the forgot password was mean’t to be a seperate document. Should have tested the loginFormTpl more before messing around with it. It’s a shame Scotty didn’t include a simple usage for WebLoginPE like he did with FiledownloadPE. We live and learn! smiley