cannot log out
📜 Description
Fresh install. Logged in as superadmin. I cannot log out using the button. If you click on it, it refreshes the page and sends you back to the calendar view.
Self hosted via Cloudron. Postiz 1.36.1 [email protected]
👟 Reproduction steps
Log in as superadmin go to settings click on logout from postiz page refreshes and sends you back to calendar view no channels have been added - fresh install
👍 Expected behavior
log me out dammit :P
👎 Actual Behavior with Screenshots
read above
💻 Operating system
Linux
🤖 Node Version
no clue
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
- [x] I checked and didn't find similar issue
Are you willing to submit PR?
None
To add to this, when logged in and then confirming the logout in the logout dialog, it never issues any kind of logout request (not at least anything regarding the logout route https://github.com/gitroomhq/postiz-app/blob/dd60c938e6c660f94491d4563a77d524a616fdad/apps/backend/src/api/routes/users.controller.ts#L204 )
It does however reload the view on button press. Maybe the logout happens without an XHR through some other channel?
Are you using the non secured option?
Oh I see, after looking around the code for process.env.NOT_SECURED it seems it mostly only checks for its existance, not a truthy/falsly value. We have set it as NOT_SECURED=false in the env which obviously is not correct then. Unsetting the variable fixes the issue.
Thanks for the hint, this is resolved!