diff --git a/src/simpleauth.js b/src/simpleauth.js index f6ecb964d..edf9b2356 100644 --- a/src/simpleauth.js +++ b/src/simpleauth.js @@ -87,9 +87,9 @@ function login(req, res, next) { loginLogic(req.body.clientId, req.body.username, req.body.password, function (error, result) { if (error && error.reason === ClientsError.NOT_FOUND) return next(new HttpError(401, 'Unknown client')); - if (error && error.reason === ClientsError.INVALID_CLIENT) return next(new HttpError(401, 'Unkown client')); + if (error && error.reason === ClientsError.INVALID_CLIENT) return next(new HttpError(401, 'Unknown client')); if (error && error.reason === UserError.NOT_FOUND) return next(new HttpError(401, 'Forbidden')); - if (error && error.reason === AppsError.NOT_FOUND) return next(new HttpError(401, 'Unkown app')); + if (error && error.reason === AppsError.NOT_FOUND) return next(new HttpError(401, 'Unknown app')); if (error && error.reason === UserError.WRONG_PASSWORD) return next(new HttpError(401, 'Forbidden')); if (error && error.reason === AppsError.ACCESS_DENIED) return next(new HttpError(401, 'Forbidden')); if (error) return next(new HttpError(500, error));