Tweak error message.

This commit is contained in:
Nick Martin
2014-03-12 15:51:10 -07:00
parent d920f4c7e2
commit 14856d5600
2 changed files with 3 additions and 3 deletions

View File

@@ -73,12 +73,12 @@ var validateLogin = function (connection, attempt) {
}
catch (e) {
attempt.allowed = false;
attempt.error = e
attempt.error = e;
return true;
}
if (! ret) {
attempt.allowed = false;
attempt.error = new Meteor.Error(403, "Login Forbidden");
attempt.error = new Meteor.Error(403, "Login forbidden");
}
return true;
});

View File

@@ -558,7 +558,7 @@ if (Meteor.isClient) (function () {
this.password,
expect(function (error) {
test.isTrue(error);
test.equal(error.reason, "Login Forbidden");
test.equal(error.reason, "Login forbidden");
})
);
},