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

    I am having a few problems with the login addon from Shaun McCormick (http://rtfm.modx.com/display/ADDON/Login) It seems to work intermittently, which is why I have been left scratching my head.
    Some days it logs me in, and seems to work fine, while others, nothing. All the while, I get no errors messaged displayed anywhere, not onscreen or in any log files.

    I have followed the basic set-up (http://rtfm.modx.com/display/ADDON/Login.Basic+Setup) and also the Request Membership tutorials and as I said it has seemed to work, but no output to screen, ie, ’sorry no records found’ etc.
    I am using Rev 2.1.1 and Login version 1.6.3

    Login Page
    [[!Login? &loginTpl=`lgnLoginTpl` &logoutTpl=`lgnLogoutTpl` &errTpl=`lgnErrTpl` &logoutResourceId=`20` &redirectToPrior=`1`]]


    lgnLoginTpl Chunk
    <div class="loginForm">
        <div class="loginMessage">[[+errors]]</div>
        <div class="loginLogin">
            <form class="loginLoginForm" action="[[~[[*id]]]]" method="post">
                <fieldset class="loginLoginFieldset">
                    <legend class="loginLegend">[[+actionMsg]]</legend>
                    <label class="loginUsernameLabel">[[%login.username]]
                        <input class="loginUsername" type="text" name="username" />
                    </label>
                    
                    <label class="loginPasswordLabel">[[%login.password]]
                        <input class="loginPassword" type="password" name="password" />
                    </label>
                    <input class="returnUrl" type="hidden" name="returnUrl" value="[[+request_uri]]" />
    
                    [[+login.recaptcha_html]]
                    
                    <input class="loginLoginValue" type="hidden" name="service" value="login" />
                    <span class="loginLoginButton"><input type="submit" name="Login" value="[[+actionMsg]]" /></span>
                </fieldset>
            </form>
        </div>
    </div>


    lgnErrTpl Chunk
    <p class="error">[[+msg]]</p>


    Any help on this welcome.
      Linux, PHP 5.2, MySQL 5.0, Revo 2.2.0-pl2