Skip to content

Commit

Permalink
#2490: fixed logout to be a post
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-may committed Jun 21, 2024
1 parent b7b750b commit b9d7caf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ jobs:
ui-tests-against-postgres-cypress-dashboard:
# if: github.event_name == 'schedule-never'
if: github.event_name == 'schedule-never'
runs-on: ubuntu-22.04
# container:
# image: cypress/browsers:node-20.6.1-chrome-116.0.5845.187-1-ff-117.0-edge-116.0.1938.76-1
Expand Down
2 changes: 1 addition & 1 deletion dashboard-prime/src/stores/UseAuthState.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const useAuthState = defineStore('authState', () => {
const logout =() => {
clearAuthData()
appInfoState.setShowUa(false)
return axios.get('/logout').then(() => {
return axios.post('/logout').then(() => {
router.replace('/skills-login')
})
}
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/cypress/e2e/user_agreement_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe('User Agreement Specs', ()=> {

cy.intercept('GET', '/app/userAgreement').as('loadUserAgreement');
cy.intercept('GET', '/admin/projects/projBanana/').as('loadProject');
cy.intercept('GET', '/logout').as('logout');
cy.intercept('POST', '/logout').as('logout');

cy.logout();
cy.login('[email protected]', 'password1');
Expand Down

0 comments on commit b9d7caf

Please sign in to comment.