Hi all,
I have made a front-end login system with the Login snippets (v1.3.1). It realy works great, only the change-password functionality doesn’t work like I would expected. I have made an UpdateProfile-form chunk and I would have to update the password by entering the current password, then twice the new password. Next it would be nice if the user gets an activation email.
What I dit was simple;
<table cellspacing="0" cellpadding="0">
<tr>
<td>Current password:</td>
<td><input type="password" name="password_old:minLength=8" class="field large" />[[+error.password_old]]</td>
</tr>
<tr><td colspan="2"> </td></tr>
<tr>
<td>New password:</td>
<td><input type="password" name="password_new:minLength=8" class="field large" />[[+error.password_new]]</td>
</tr>
<tr>
<td>Confirm password:</td>
<td><input type="password" name="password_new_confirm:password_confirm=`password_new`" class="field large" />[[+error.password_new_confirm]]</td>
</tr>
</table>
But I would it not to be required. Only when entering a new password the confirmed one must be validated and otherwise the old password or new password may be empty. But I’m getting the ’register.min_length’ etc. also. How do I made the fields not required but let them validate if they are entered? Anyone an idea?
Regards, Bert
[edit]
I also wanna know how to create ’remove-account’ functionality. Should this be done with own hooks?