Login and forgot password forms for your website

Stewart Campbell

A login form and forgot password form will need to be included on your website. Please use the sample code below for this. This can be easily adjusted and themed for your site branding.

Code sample for login form

<script src="https://s3-ap-southeast-2.amazonaws.com/assets.gpsengine.net/gpsengine/xlogin-2.js"></script>

<form name="login" id="login" action="https://[something]/myaccount/xlogin">

Username: <input name="username" type="text"><br>

Password: <input name="password" type="password"><br>

<input type="submit" value="Login">

<span id="login_error" style="color: red"></span>

</form>

Code sample for forgot password form

<script src="https://s3-ap-southeast-2.amazonaws.com/assets.gpsengine.net/gpsengine/xlogin-2.js"></script>

<form name="forgotpassword" id="forgotpassword" action="https://[something]/myaccount/xforgotpassword">

Email: <input name="username" type="text"><br>

<input type="submit" value="Email Me">

<span id="forgot_error" style="color: red"></span>

</form>

In the above code samples replace [something] with your White Label Site subdomain name. Using the example White Label Site domain gps.example.com, [something] would be replaced with gps.example.com.