Update 'app/controllers/auth/Oauth2.controller.js'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Garrett Mills 2021-09-15 04:25:03 +00:00
parent 670b9b1299
commit a60af453ab

View File

@ -67,8 +67,9 @@ class Oauth2 extends Oauth2Controller {
}) })
} }
if ( req.query.state ) { let state;
const state = Array.isArray(req.query.state) ? req.query.state[0] : req.query.state if ( state = (req.query.state || req.body.state) ) {
state = Array.isArray(req.query.state) ? req.query.state[0] : req.query.state
const uri_params = new URLSearchParams(uri.params) const uri_params = new URLSearchParams(uri.params)
uri_params.set('state', state) uri_params.set('state', state)
} }