Improve profile form
This commit is contained in:
parent
1ae229e268
commit
b9611df781
2 changed files with 5 additions and 4 deletions
|
@ -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.'
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue