Fix password is being saved even if not changed
Fixes: http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-303
This commit is contained in:
parent
68b1ae1a36
commit
74ba09f95c
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue