Update 'app/controllers/auth/Oauth2.controller.js'
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
670b9b1299
commit
a60af453ab
@ -67,8 +67,9 @@ class Oauth2 extends Oauth2Controller {
|
||||
})
|
||||
}
|
||||
|
||||
if ( req.query.state ) {
|
||||
const state = Array.isArray(req.query.state) ? req.query.state[0] : req.query.state
|
||||
let 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)
|
||||
uri_params.set('state', state)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user