I have created a login form to enable a member to login but the result gives me a ‘form expired’ error. I am developing on a local system (MacBook Pro/MAMP)
Is there something simple I have missed?
Anthony Adelaide/Australia
{exp:member:login_form return="member/index"}
<div class="form-group row">
<label for="uname" class="col-sm-2 col-form-label">Username</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="uname">
</div>
</div>
<div class="form-group row">
<label for="pword" class="col-sm-2 col-form-label">Password</label>
<div class="col-sm-10">
<input type="password" class="form-control" id="pword">
</div>
</div>
<div class="form-group row">
<div class="col-sm-10 offset-sm-2">
<button type="submit" class="btn btn-primary">Log in</button>
</div>
</div>
{/exp:member:login_form}
Are you caching the form? If you are the CRSF token may not be updated until the cache is cleared.
I’ve found the same symptoms on occasion, even when forms are not cached, clearing my browser history & cookies usually fixes it. I’ve not found the exact cause but it does point to cookies getting out of sync.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.