diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-11-21 15:58:36 +0100 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-11-21 17:12:18 +0100 |
commit | 58ca8655231af322f3ab4c291ad774d6bf960805 (patch) | |
tree | f7c4e591bc81a662925660dfb68b434e4ae4eee2 /src | |
parent | fb266f056d2540e884ab56479c4ae47c5262637e (diff) |
Fix csrf error
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'src')
-rw-r--r-- | src/views/OAuth2Authorize.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/views/OAuth2Authorize.vue b/src/views/OAuth2Authorize.vue index 0732f1ec..01041d5a 100644 --- a/src/views/OAuth2Authorize.vue +++ b/src/views/OAuth2Authorize.vue @@ -24,6 +24,9 @@ {{ t('social', '{appDisplayName} would like permission to access your account. It is a third party application.', {appDisplayName: appName}) }} <b>{{ t('social', 'If you do not trust it, then you should not authorize it.') }}</b> </p> + <input type="hidden" + name="requesttoken" + :value="OC.requestToken"> <div class="button-row"> <NcButton type="primary" nativeType="submit"> {{ t('social', 'Authorize') }} @@ -53,7 +56,7 @@ export default { }, computed: { homeUrl() { - generateUrl('/apps/social/') + return generateUrl('/apps/social/') }, }, } |