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

    I have just installed this for the first time and all is great apart from I cant seem to get the Ajax login to work with taconite. I can get the form to hide with the javascript once the submit is clicked however its not actaully doing anything else like logging the user in.

    Anyone else come across this and know where I should start looking or has anyone come across this and found a solution.

    note: I apologize in advance if I am missing something simple here wink

    I have a few things already going on in the page so I am running the snippet through another snippet hence the runSnippet()

    $o .= $modx->runSnippet('WebLoginPE', array(
    	       'type'=>'taconite'
    	));


    Then I am using the following HTML on the page

    <div id="wlpeLogin">
    	<form method="POST" action="" id="wlpeLoginForm">
    		<fieldset id="wlpeLoginFieldset">
    			<legend id="wlpeLegend">Web User Login Form</legend>
    			
    			<div class="form-item">		
    				<label for="wlpeUsername" id="wlpeUsernameLabel">Username</label>
    				<input type="text" name="username" id="wlpeUsername" class="text"/>
    			</div>
    			
    			
    			<div class="form-item">
    				<label for="wlpePassword" id="wlpePasswordLabel">Password</label>
    				<input type="password" name="password" id="wlpePassword" class="text"/>
    			</div>
    			
    			<div class="form-item">
    				<label for="wlpeStayLoggedIn" id="wlpeStayLoggedInLabel">Remember me</label>
    				<input type="checkbox" \="" value="315569260" name="stayloggedin" id="wlpeStayLoggedIn"/>
    			</div>
    			
    		</fieldset>
    		<fieldset id="wlpeLoginButtons">
    			<input type="hidden" id="service" name="service" value="login" />
    			<input type="submit" class="submit" value="Login" />
    			<button value="forgot" name="serviceButtonValue" id="wlpeReminderButton" type="submit" class="submitLink">Forgot Password?</button>
    			<button value="registernew" name="serviceButtonValue" id="wlpeRegisterButton" type="submit" class="submitLink">Register</button>
    		</fieldset>
    	</form>
    </div>


    Any ideas?