change state param

master^2
Pete Matsyburka 1 week ago
parent a184fa11f1
commit 3fca76a716

@ -143,8 +143,8 @@
>
<input
type="hidden"
name="state"
:value="oauthState"
name="oauth_data"
:value="oauthData"
autocomplete="off"
>
<input
@ -334,7 +334,7 @@ export default {
authenticityToken () {
return document.querySelector('meta[name="csrf-token"]')?.content
},
oauthState () {
oauthData () {
const params = new URLSearchParams('')
params.set('redir', document.location.href)

@ -228,7 +228,7 @@ export default {
'https://www.googleapis.com/auth/userinfo.email',
'https://www.googleapis.com/auth/drive.file'
].join(' '),
state: new URLSearchParams({
oauth_data: new URLSearchParams({
redir: `/templates/${this.templateId}/edit?google_drive_open=1`
}).toString()
}

Loading…
Cancel
Save