We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29494
    • 3 Posts
    Hello everybody

    On my site I have a custom login form in my side bar hardcoded into the template (see code no 1).

      <div id="wlpeForm">
        <form id="wlpeLoginForm" action="/[~18~]" method="post">
          <fieldset id="wlpeLoginFieldset" class="wlpeInputFieldset">
            <label class="wlpeLabelSmall" for="wlpeUsername">Benutzername</label>
            <input class="wlpeInputSmall" id="wlpeUsername" type="text" name="username" /><br />
            <label class="wlpeLabelSmall" for="wlpePassword">Passwort</label>
            <input class="wlpeInputSmall" id="wlpePassword" type="password" name="password" /><br />
            <label class="wlpeLabelSmall" for="wlpeStayLoggedIn">Eingeloggt bleiben</label>
            <select class="wlpeSelectSmall" id="wlpeStayLoggedIn" name="stayloggedin">
              <option value="">Nein</option>
              <option value="3600">Eine Stunde</option>
              <option value="86400">Einen Tag</option>
              <option value="604800">Eine Woche</option>
              <option value="2678400">Einen Monat</option>
              <option value="315569260">Immer</option>
            </select><br />
          </fieldset><br />
          <fieldset class="wlpeButtonFieldset">
            <button type="submit" id="wlpeLoginButton" name="service" value="login">Login</button>
            <button type="submit" id="wlpeReminderButton" name="service" value="forgot">Passwort vergessen</button>
            <button type="submit" id="wlpeRegisterButton" name="service" value="registernew">Registrieren</button>
          </fieldset>
        </form>
      </div>
    


    The form links to the site with ID 18 where I have the code for WebLoginPE (see code no 2).

    [!WebLoginPE? &lang=`de` &type=`simple` &regType=`verify` &groups=`Unverified` &dateFormat=`%A, %d. %B %Y um %I:%M %p` &loHomeId=`1` &liHomeId=`1`!]
    


    Everything works fine with normal pages. When entering the login name and password in the login form in the side bar and pressing "Login" I am getting logged in and redirected to the site with the ID 1. Also the other buttons work perfectly: if I press the "Passwort vergessen" button the password forgotten form is shown or if I press the "Registrieren" button the register form is shown.

    However if I am on the "access denied" page e.g. because I tried to access a restriceted site by directly entering the url in the browser, the login form doesn’t work anymore. In this case, regardless wether I try to log in, wether I press the "Passwort vergessen" butto or whether I press the "Registrieren" button, I am always sent to site with ID 18 and the simple login form is shown.

    Does someone have an Idea why the login form isn’t working on the "access denied" page?

    And no, there is no special content on the "access denied" page. It just says "Access denied" wink

    Your help would be highly appreciated!

    Regards, Tensai