summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-04-15 17:09:11 +0200
committerBart Visscher <bartv@thisnet.nl>2012-04-15 17:11:03 +0200
commit74ba09f95c57bc0cc8d7e8617cefe26f13054799 (patch)
tree954452971b982a33e1c9d87f46df0c3725e7ce36 /settings
parent68b1ae1a36b652de19afcb645e098e6ac6918eab (diff)
downloadnextcloud-server-74ba09f95c57bc0cc8d7e8617cefe26f13054799.tar.gz
nextcloud-server-74ba09f95c57bc0cc8d7e8617cefe26f13054799.zip
Fix password is being saved even if not changed
Fixes: http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-303
Diffstat (limited to 'settings')
-rw-r--r--settings/js/personal.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index 8108da433c8..77d103c53b6 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -33,7 +33,11 @@ $(document).ready(function(){
});
$('#lostpassword #email').blur(function(event){
+ if ($(this).val() == this.defaultValue){
+ return;
+ }
event.preventDefault();
+ this.defaultValue = $(this).val();
OC.msg.startSaving('#lostpassword .msg');
var post = $( "#lostpassword" ).serialize();
$.post( 'ajax/lostpassword.php', post, function(data){