crater
crater copied to clipboard
User is auto logged-in when hitting the crater URL directly after recording a payment and logout.
Describe the bug User is auto logged-in when hitting the crater URL directly after recording a payment and logout.
Steps to Reproduce
- Goto https://demo.craterapp.com/
- Enter email & password, Click login
- Click on Payments and click on Add Payment
- Select Customer(Add if there are no customer) & enter value in amount field
- Click on save payment
- Click on user icon and click on logout (User is navigated to https://demo.craterapp.com/login & login screen Displayed)
- Enter the URL "https://demo.craterapp.com/" in address bar and hit Enter key OR Refresh the page.
Expected behavior Login Page should be displayed
Actual behavior User is navigated to dashboard with URL https://demo.craterapp.com/admin/dashboard
Please complete the following information:
- Crater version: 6.0.4
Optional info
- OS: mac
- Browser: chrome
You do realise that the crater demo app (available via crater website) is specifically designed to auto login users, perhaps that's what happened?
I have a demo that is designed to act like a normal crater install (please be advised that it resets every 2 hours, so all data gets lost). use this link: https://crater.demo.griffin-studio.dev/: Username: [email protected] Password: crater@123
If you experience the same issue please confirm below, however if not please close this issue.
You do realise that the crater demo app (available via crater website) is specifically designed to auto login users, perhaps that's what happened?
I have a demo that is designed to act like a normal crater install (please be advised that it resets every 2 hours, so all data gets lost). use this link: https://crater.demo.griffin-studio.dev/: Username: [email protected] Password: crater@123
If you experience the same issue please confirm below, however if not please close this issue.
Same issue observed, please follow the steps to reproduce.
ok let me try it as well on another install that doesn't get reset.
@gokultw well done, this is a nice catch! To expand on the test, the same issue happens on Invoice and Estimates submission. Expenses surprisingly are not affected, despite also having similar options. @mohitpanjwani, any ideas what might cause this?
Any update on this ?
@rihards-simanovics, Is Anyone looking into this issue?
Hi @gokultw, I'm afraid I can't say, as I am not part of maintainers for this project, I only support the community by answering questions and directing to workable solutions. Also, this issue only seems to happen after you sign in from the same browser (and only within a limited period) so I can't see it being a hight priority right now.
This issue seems to be happening when you click on logout from one of the view pages.
On view page, we have a watcher which fires whenever the route changes in order to fetch the payment/invoice but it fires when you click on logout too which causes the cookie to be set again after it's logged out and thus the logout action doesn't work as it should.
We'll fix it on the next minor release.
