summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/user.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/src/freeipa/user.js')
-rw-r--r--install/ui/src/freeipa/user.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/install/ui/src/freeipa/user.js b/install/ui/src/freeipa/user.js
index aee1b694e..e3ada9844 100644
--- a/install/ui/src/freeipa/user.js
+++ b/install/ui/src/freeipa/user.js
@@ -133,10 +133,10 @@ return {
metadata: '@mo-param:user:userpassword'
},
{
+ $type: 'datetime',
name: 'krbpasswordexpiration',
label: '@i18n:objects.user.krbpasswordexpiration',
- read_only: true,
- formatter: 'datetime'
+ read_only: true
},
'uidnumber',
'gidnumber',
@@ -473,7 +473,7 @@ IPA.user_adder_dialog = function(spec) {
var password2 = field2.save()[0];
if (password1 !== password2) {
- field2.show_error(text.get('@i18n:password.password_must_match'));
+ field2.set_valid({ valid: false, message: text.get('@i18n:password.password_must_match') });
valid = false;
}