We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24330
    • 28 Posts
    Hey all,

    I could really use a second (or 3rd, or 4th!) pair of eyes on this one...
    I’m using MODx 9.6.2 with the latest WebLoginPE beta (1.3.2 b1) from the vhollo branch here:
    http://code.google.com/p/webloginpe/source/browse/branches/vhollo/

    Everything seems to work fine in the password reset process until I try to load the link from the email. At that point, it simply ignores the activateTpl parameter and loads the loginFormTpl. Ideas anyone? Please share some of your genius! I’ve been stuck for hours with this. huh

    Is no one else having this problem?

    Here’s my snippet call, which is called on doc ID 60 (Site start):
    [!WebLoginPE? &id=`memberLoginForm` &type=`simple` &liHomeId=`55` &loHomeId=`60` &loginFormTpl=`FormLoginPE` &successTpl=`LoggedInStatus` &activateTpl=`ActivateMe` !]


    My activateTpl chunk:
    [+wlpe.message+]
    <div id="wlpeActivate">
    	<form id="wlpeActivateForm" name="wlpeActivateForm" action="[~[*id*]~]" method="post">
    		<fieldset id="wlpeActivateFieldset">
    			<input type="hidden" name="userid" value="[+request.userid+]" />
    			<input type="hidden" name="activationkey" value="[+request.activationkey+]" />
    			
    			<label for="wlpeActivationPassword">Temporary password
    			<input type="text" id="wlpeActivationPassword" name="activationpassword" />
    			</label>
    			<label for="wlpeNewPassword">New password
    			<input type="password" id="wlpeNewPassword" name="newpassword" />
    			</label>
    			<label for="wlpeNewPasswordConfirm">Confirm new password
    			<input type="password" id="wlpeNewPasswordConfirm" name="newpassword.confirm" />
    			</label>
    			
    		</fieldset>
    		<fieldset id="wlpeActivateButtonFieldset">
    			<button type="submit" id="wlpeActivateButton" name="service" value="activated">Activate</button>
    		</fieldset>
    	</form>
    </div>
      Rafael
      • 28033
      • 925 Posts
      I was having issue where WLPE wouldn’t even register people properly (server issues, I bet), so I haven’t been using it on my site for a while now.

      I’m not that great of a PHP coder, so I dunno what the issue is, to be honest.
        My Snippets
        -> PopUpChunk v1.0
        • 31471
        • 206 Posts
        I suppose that all of the confirm-fields must be renamed to ’..._confirm’.
        Please try changing ’newpassword.confirm’ to ’newpassword_confirm’ and tell us what happens then?

          • 24330
          • 28 Posts
          Hi guys -- thanks for your replies!

          Quote from: vhollo at Apr 03, 2009, 01:43 AM

          Please try changing ’newpassword.confirm’ to ’newpassword_confirm’ and tell us what happens then?

          I went ahead and saved the change you suggested to the ActivateMe chunk, re-initiated the password reset process for another email with an activation key, clicked the link in the email, but the the template still didn’t load...

          Any other ideas? Again, I REALLY appreciate your help!
            Rafael
            • 31471
            • 206 Posts
            I just went thru the activation procedure on a site of me and it is working.
            In the activation email the link provided looks like this:
            http://myexample.com?wlpeID=sidebar&service=forgot&service=activate&userid=55&activationkey=P79yaDuKbV
            (There are two ’service’ parameters because WLPE uses the referer url when sending the email -- but it’s not a problem.)

            How does your activation link look like?
              • 24330
              • 28 Posts
              Quote from: vhollo at Apr 04, 2009, 06:26 PM

              How does your activation link look like?

              Hmmm... interesting. It looks like you’re on to something! Strangely, my activation link is much shorter:

              http://myexample.com/login.html&service=activate&userid=27&activationkey=jcF96mtWdJ
                Rafael
                • 31471
                • 206 Posts
                If your link doesn’t include ’wlpeID=memberLoginForm’ I must think that some of the "instanced" files is missing.
                From the snippet I call a function in the class for each templates/forms that adds hidden input "wlpeID".

                Try to download it again from my  bunch or from the download section. I just updated both to the latest revision with paging, group-selection, etc.
                  • 24330
                  • 28 Posts
                  Quote from: vhollo at Apr 04, 2009, 07:11 PM

                  If your link doesn’t include ’wlpeID=memberLoginForm’ I must think that some of the "instanced" files is missing.

                  I replaced the 3 WebLoginPE files on my server with the 3 new files included in the download, and ran the test case again and the URL still used the same few parameters as before, and the activateTpl is still not being rendered... Could there be something wrong in my WebLoginPE call, or perhaps my Login template?

                  Here’s my login template chunk:
                  <!-- login form section-->
                  [+wlpe.message+]
                  <form method="post" name="loginfrm" action="[~[*id*]~]">
                    <fieldset>
                    <h1>Login</h1>
                    <label for="username">User:<br>
                    <input name="username" type="text" id="username" size="40" />
                    </label>
                    <label for="password"><br>
                    Password:<br>
                    <input name="password" type="password" id="password" value="" size="40" />
                    </label>
                    <br>
                    <input type="checkbox" id="checkbox_1" name="stayloggedin" size="1" value="2678400" />
                    <label for="checkbox_1" class="checkbox">Remember me<br>
                    </label>
                    <button type="submit" id="wlpeLoginButton" name="service" value="login" class="wlpeFormBorder">Login</button>
                    <button type="submit" id="wlpeReminderButton" name="service" class="submitLink" value="forgot">Forgot Your Password?</button>
                    </fieldset>
                  <p> </p>
                  <h2>Register</h2>
                  <p>Don't have an account yet?</p>
                  <p>Become a <a href="[~66~]">registered member</a> today.</p>
                  </form>
                  
                  
                    Rafael
                    • 31471
                    • 206 Posts
                    I apologize you... as I thought it over again it only worked for me because I used a link instead of a button, so the link already included ’wlpeID=sidebar’, but when you use a button the referer url is clean.
                    Please try this attached webloginpe.class.php and if it’s OK I’ll upload it to google code.
                    And really sorry again!!
                      • 24330
                      • 28 Posts
                      Quote from: vhollo at Apr 05, 2009, 03:50 AM

                      Please try this attached webloginpe.class.php and if it’s OK I’ll upload it to google code.

                      That did the trick. The activateTpl now displays, and the whole password reset flow works as it should.

                      All hail vhollo, the new WebLoginPE master!  Long live vhollo! grin
                        Rafael