We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34174
    • 67 Posts
    Hi folks

    MODX 2.5. When I use the default code for the tpl for Forgot Password, I get this (placeholders are broken):



    Also if I proceed with the reset, I do get the email as follows, but with the URL missing:

    To activate your new password, please click on the following link:
    If successful you can use the following password to login:
    Password: bxg1yprf
    If you did not request this message, please ignore it.


    My code:

    [[!ForgotPassword? &resetResourceId=`123` &tplType=`embedded` &sentTplType=`inline` &sentTpl=`<p>Your login information has been sent to the email address [[+email]].</p>` ]]
    
    <div class="loginFPErrors">[[+loginfp.errors]]</div>
    <div class="loginFP">
      <form class="loginFPForm" action="[[~[[*id]]]]" method="post">
        <fieldset class="loginFPFieldset">
          <legend class="loginFPLegend">[[%login.forgot_password]]</legend>
          <label class="loginFPUsernameLabel">[[%login.username]]
            <input class="loginFPUsername" type="text" name="username" value="[[+loginfp.post.username]]" />
          </label>
    
          <p>[[%login.or_forgot_username]]</p>
    
          <label class="loginFPEmailLabel">[[%login.email]]
            <input class="loginFPEmail" type="text" name="email" value="[[+loginfp.post.email]]" />
          </label>
    
          <input class="returnUrl" type="hidden" name="returnUrl" value="[[+loginfp.request_uri]]" />
    
          <input class="loginFPService" type="hidden" name="login_fp_service" value="forgotpassword" />
          <span class="loginFPButton"><input type="submit" name="login_fp" value="[[%login.reset_password]]" /></span>
        </fieldset>
      </form>
    </div>


    Any ideas?

    Thanks.
      • 17301
      • 932 Posts
      If they are only placeholders/labels why not just hardcode them in as you want them?
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 34174
        • 67 Posts
        Quote from: lkfranklin at Jul 12, 2016, 10:29 AM
        If they are only placeholders/labels why not just hardcode them in as you want them?

        Yes that is a workaround but it would be nice to figure out why it doesn't work.

        And the reset URL not displaying is a more serious issue.
          • 17301
          • 932 Posts
          What do you have in resource 123?
            ■ email: [email protected] | ■ website: https://alienbuild.uk

            The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.