There can be a CSRF Token error when linking a self-hosted Flamenco Server (Blender Cloud/Blender ID) with a Flamenco Manager. This insertion will pass the CSRF Token so that the Manager and Server can be linked.
Details
Details
Diff Detail
Diff Detail
- Repository
- rF Flamenco
Event Timeline
Comment Actions
Thanks for the patch!
I was unable to create a diff inside the Flamenco repository. The file that this belongs to is:
flamenco/flamenco/templates/flamenco/managers/linking/choose_manager.html
This is because that file is generated from PUG files, and is not tracked by Git. I can translate it though:
diff --git a/src/templates/flamenco/managers/linking/choose_manager.pug b/src/templates/flamenco/managers/linking/choose_manager.pug index 1a81c5d8..ada015fd 100644 --- a/src/templates/flamenco/managers/linking/choose_manager.pug +++ b/src/templates/flamenco/managers/linking/choose_manager.pug @@ -3,6 +3,7 @@ .box form(onsubmit="return linkManager(this)",method='POST') + input(type='hidden',name='csrf_token',value='{{ csrf_token() }}') | {% if not managers %} p You have no Manager registered at Flamenco Server. Provide a name for your new Manager. | {% else %}