Fix password is being saved even if not changed

Fixes: http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-303
remotes/origin/stable4
Bart Visscher 13 years ago
parent 68b1ae1a36
commit 74ba09f95c
  1. 4
      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){

Loading…
Cancel
Save