I’ve build a custom registration form into one of my templates. It seems to work fine for error trapping, but once the fields are correctly filled out, EE throws this error instead of successfully processing the registration:
You are not authorized to perform this action
(I’ve disabled the terms of service requirement in the EE control panel, btw.)
My form:
<form id='register_member_form' method="post" action="{site_url}" >
<input type="hidden" name="XID" value="f5f63ec418563c0bc141ce307cca4d990cad0531" />
<input type="hidden" name="ACT" value="<?php echo $action_id; ?>" />
<input type="hidden" name="RET" value="{site_url}" />
<input type="hidden" name="FROM" value="" />
Username: <input type="text" name="username" value="" maxlength="32" class="input" size="25" style="width:300px" /><br>
Password: <input type="password" name="password" value="" maxlength="32" class="input" size="25" style="width:300px" /><br>
Password confirm: <input type="password" name="password_confirm" value="" maxlength="32" class="input" size="25" style="width:300px" /><br>
Email: <input type="text" name="email" value="" maxlength="120" class="input" size="40" style="width:300px" /><br>
<input type="submit" value="Submit" class="submit" /></p>
</form>