Recently while building out eeharbor.com I found myself wanting to get away from the traditional ExpressionEngine Forgot Password page. This would require me to expose the Member Profile Trigger word, and I’m afraid some dweeb would tweet it out.
I knew there were a bunch of Standalone Member Registration methodologies out there, but I wasn’t aware of any solutions for a Standalone Forgotten Password page. Since quick search provided me with nada, I set out to do it on my own. The following is the solution I came up with.
Use of the first part will require you to turn PHP on for this template. Alternatively you could hard code the action id in the form below and delete this portion form the template.
<?php $this->EE =& get_instance(); $action_id = $this->EE->functions->fetch_action_id('Member', 'retrieve_password'); ?> <form id="forgot_password_form" method="post" action="{site_url}"> <div class='hiddenFields'> <input type="hidden" name="ACT" value="<?php echo $action_id; //or you could hard code this action id ?>" /> <input type="hidden" name="XID" value={XID_HASH} /> <input type="hidden" name="RET" value="-3" /> <input type="hidden" name="FROM" value="" /> <input type="hidden" name="site_id" value="1" /> </div> <p> <label for="email">Email Address</label> <input type="text" id="email" name="email" /> </p> <p class="login_submit"> <input type="submit" id="submit" name="submit" value="Submit" /> </p> </form>
One Response to ExpressionEngine Stand Alone Forgotten Password