Skip to content
Snippets Groups Projects
Commit 74ba09f9 authored by Bart Visscher's avatar Bart Visscher
Browse files

Fix password is being saved even if not changed

parent 68b1ae1a
Branches
No related tags found
No related merge requests found
......@@ -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){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment