diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-27 19:12:10 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-27 19:12:10 -0400 |
commit | fba066341d3cb1352d1e263fdddb085e9584a986 (patch) | |
tree | aabcce56290b096c7acfda4c8cc324ce2eeb3d54 /settings | |
parent | 74c7890fbb3e1b52c9207e15a886f2d3820d1f6c (diff) | |
download | nextcloud-server-fba066341d3cb1352d1e263fdddb085e9584a986.tar.gz nextcloud-server-fba066341d3cb1352d1e263fdddb085e9584a986.zip |
Add locale for password change error
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/personal.js | 3 | ||||
-rw-r--r-- | settings/templates/personal.php | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index aad57224388..ad3fb706fd0 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -25,7 +25,8 @@ $(document).ready(function(){ }); return false; } else { - $('passworderror').show(); + $('#passwordchanged').hide(); + $('#passworderror').show(); return false; } diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 4629c93b90e..4198892649e 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -11,7 +11,7 @@ <form id="passwordform"> <fieldset class="personalblock"> <div id="passwordchanged"><?php echo $l->t('Your password got changed');?></div> - <div id="passworderror"></div> + <div id="passworderror"><?php echo $l->t('Unable to change your password');?></div> <input type="password" id="pass1" name="oldpassword" placeholder="<?php echo $l->t('Current password');?>" /> <input type="password" id="pass2" name="password" placeholder="<?php echo $l->t('New password');?>" data-typetoggle="#show" /> <input type="checkbox" id="show" name="show" /><label for="show"><?php echo $l->t('show');?></label> |