diff --git a/lib/hooks/auth.coffee b/lib/hooks/auth.coffee index d27e3ce7..01801d60 100644 --- a/lib/hooks/auth.coffee +++ b/lib/hooks/auth.coffee @@ -1,6 +1,5 @@ _ = require('lodash') resin = require('../resin') -messages = require('../messages/messages') exports.failIfNotLoggedIn = (fn, onError) -> return -> @@ -8,7 +7,7 @@ exports.failIfNotLoggedIn = (fn, onError) -> resin.auth.isLoggedIn (isLoggedIn) -> if not isLoggedIn - error = new Error(messages.errors.loginRequired) + error = new Error('You have to log in') if onError? return onError(error) else diff --git a/lib/messages/messages.coffee b/lib/messages/messages.coffee deleted file mode 100644 index 9a74ca40..00000000 --- a/lib/messages/messages.coffee +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = - - errors: - loginRequired: 'You have to log in'