Fix missing translation scope
This commit is contained in:
parent
c7f6172d56
commit
98234c0ef4
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user