mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Tweak error message.
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
})
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user