mirror of https://github.com/apache/cloudstack.git
CS-14230
Add password confirm to add account/user forms Original patch by: oyla.smola@gmail.com Reviewed-by: brian
This commit is contained in:
parent
c3713a5861
commit
237fd426e1
|
|
@ -86,6 +86,15 @@
|
|||
password: {
|
||||
label: 'label.password',
|
||||
validation: { required: true },
|
||||
isPassword: true,
|
||||
id: 'password'
|
||||
},
|
||||
'password-confirm': {
|
||||
label: 'label.confirm.password',
|
||||
validation: {
|
||||
required: true,
|
||||
equalTo: '#password'
|
||||
},
|
||||
isPassword: true
|
||||
},
|
||||
email: {
|
||||
|
|
@ -683,7 +692,16 @@
|
|||
password: {
|
||||
label: 'label.password',
|
||||
isPassword: true,
|
||||
validation: { required: true }
|
||||
validation: { required: true },
|
||||
id: 'password'
|
||||
},
|
||||
'password-confirm': {
|
||||
label: 'label.confirm.password',
|
||||
validation: {
|
||||
required: true,
|
||||
equalTo: '#password'
|
||||
},
|
||||
isPassword: true
|
||||
},
|
||||
email: {
|
||||
label: 'label.email',
|
||||
|
|
@ -793,8 +811,17 @@
|
|||
newPassword: {
|
||||
label: 'label.new.password',
|
||||
isPassword: true,
|
||||
validation: { required: true }
|
||||
}
|
||||
validation: { required: true },
|
||||
id: 'newPassword'
|
||||
},
|
||||
'password-confirm': {
|
||||
label: 'label.confirm.password',
|
||||
validation: {
|
||||
required: true,
|
||||
equalTo: '#newPassword'
|
||||
},
|
||||
isPassword: true
|
||||
}
|
||||
}
|
||||
},
|
||||
action: function(args) {
|
||||
|
|
|
|||
|
|
@ -321,6 +321,9 @@
|
|||
|
||||
if (field.defaultValue) {
|
||||
$input.val(field.defaultValue);
|
||||
}
|
||||
if (field.id) {
|
||||
$input.attr('id', field.id);
|
||||
}
|
||||
}
|
||||
$input.addClass("disallowSpecialCharacters");
|
||||
|
|
|
|||
Loading…
Reference in New Issue