Password reminder

To display password reminder in your site content, use the following SAPI code in one of your templates:

{if $smarty.post.op2 == "send" && $form_error.email == ""}
    Password sent.
{else}
<form method="POST" name="regform" action="{$self}">

    <input type="hidden" name="id" value="{$id}">
    <input type="hidden" name="op" value="remindpass">
    <input type="hidden" name="op2" value="send">
    <input type="hidden" name="c_tpl" value="{$c_tpl}">

    E-mail*:<input type="text" name="email">
    <strong>{$form_error.email}</strong>
    <input type="submit" value="Send">

</form>
{/if}