Fix error message displaying

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2016-09-19 17:34:11 +02:00 committed by Lukas Reschke
parent 68fa1e5dd8
commit 6c3f0fd431
No known key found for this signature in database
GPG key ID: B9F6980CF6E759B1

View file

@ -65,7 +65,7 @@ function changeEmailAddress () {
// for failure the first parameter is the result object
OC.msg.finishedSaving('#lostpassword .msg', result);
}).fail(function(result){
OC.msg.finishedSaving('#lostpassword .msg', result.responseJSON);
OC.msg.finishedError('#lostpassword .msg', result.responseJSON.message);
});
}