Improve profile form

This commit is contained in:
Jay Trees 2022-03-15 13:07:05 +01:00
parent 1ae229e268
commit b9611df781
2 changed files with 5 additions and 4 deletions

View file

@ -10,8 +10,9 @@ $(function() {
fields: {
'user-email': 'email',
match: {
identifier : 'user-password-repeat',
rules: [
identifier : 'user-password-repeat',
depends : 'user-password',
rules : [
{
type : 'match[user-password]',
prompt : 'Password must match.'

View file

@ -30,13 +30,13 @@ $page->navigation();
<div class="field">
<label>Password</label>
<input type="password" name="user-password" />
<input type="password" name="user-password" autocomplete="new-password" />
</div>
<div class="field">
<label>Password (repeat)</label>
<input type="password" name="user-password-repeat" />
<input type="password" name="user-password-repeat" autocomplete="new-password" />
</div>
</div>