summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-11-10 17:06:48 +0100
committerLukas Reschke <lukas@statuscode.ch>2016-11-18 12:10:51 +0100
commit05df523395e2c9a06378f23dfd6e5439df14dffe (patch)
tree415c8b9e70ed7cd4c9434626e2dcd2ca3fca1afb /core/js/js.js
parent309b21f5a09385f4813a0115076e4fccb0b7034d (diff)
downloadnextcloud-server-05df523395e2c9a06378f23dfd6e5439df14dffe.tar.gz
nextcloud-server-05df523395e2c9a06378f23dfd6e5439df14dffe.zip
Empty the password field on submission of the form
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/core/js/js.js b/core/js/js.js
index efdb36187cd..e8f6df4cfa9 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -1546,11 +1546,7 @@ OC.PasswordConfirmation = {
if (this.requiresPasswordConfirmation()) {
this.$form.removeClass('hidden');
this.$background.removeClass('hidden');
-
- // Hack against firefox ignoring autocomplete="off"
- if (this.$input.val() === ' ') {
- this.$input.val('');
- }
+ this.$input.val('');
}
this.callback = callback;
@@ -1568,6 +1564,7 @@ OC.PasswordConfirmation = {
},
type: 'POST',
success: function(response) {
+ self.$input.val('');
nc_lastLogin = response.lastLogin;
self.$submit.addClass('icon-confirm').removeClass('icon-loading-small');
@@ -1579,6 +1576,7 @@ OC.PasswordConfirmation = {
}
},
error: function() {
+ self.$input.val('');
OC.Notification.showTemporary(t('core', 'Failed to authenticate, try again'));
self.$submit.addClass('icon-confirm').removeClass('icon-loading-small');
}