This commit is contained in:
Kload 2013-11-23 13:33:50 +01:00
parent 8b761dbab5
commit af855a8731

View file

@ -96,7 +96,6 @@ app = Sammy('#main', function (sam) {
})
.fail(function(xhr) {
console.log(xhr);
c.flash('fail', 'Wrong password');
if (xhr.status == 401) {
c.flash('fail', 'Wrong password');
} else if (typeof xhr.responseJSON !== 'undefined') {