From 98234c0ef4b135cb80857957c2a52e955d190bc8 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Wed, 12 Aug 2020 22:19:42 -0500 Subject: [PATCH] Fix missing translation scope --- app/controllers/auth/Oauth2.controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/auth/Oauth2.controller.js b/app/controllers/auth/Oauth2.controller.js index 1cfa137..6c1967e 100644 --- a/app/controllers/auth/Oauth2.controller.js +++ b/app/controllers/auth/Oauth2.controller.js @@ -13,7 +13,7 @@ class Oauth2 extends Oauth2Controller { async authorize_post(req, res, next) { const client = await this._get_authorize_client({query: req.body}) - if ( !client ) return this._uniform(res, req.T('unable_to_authorize')) + if ( !client ) return this._uniform(res, req.T('auth.unable_to_authorize')) const StarshipClient = this.models.get('oauth:Client') const starship_client = await StarshipClient.findOne({ active: true, uuid: client.clientID }) @@ -25,7 +25,7 @@ class Oauth2 extends Oauth2Controller { async authorize_get(req, res, next) { const client = await this._get_authorize_client(req) - if ( !client ) return this._uniform(res, req.T('unable_to_authorize')) + if ( !client ) return this._uniform(res, req.T('auth.unable_to_authorize')) const uri = new URL(req.query.redirect_uri) const StarshipClient = this.models.get('oauth:Client')