Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After logging in via maintenance login form, can't logout #38

Open
Karmalakas opened this issue Feb 6, 2021 · 1 comment
Open

After logging in via maintenance login form, can't logout #38

Karmalakas opened this issue Feb 6, 2021 · 1 comment

Comments

@Karmalakas
Copy link

Steps to reproduce

  • Fresh Core + Admin install (at the time of writing, 1.7.5)
  • Go to page, create user, update Login (it's 3.3.8 there instead of 3.4.0)
  • Make any page accessible only with site.login
  • Navigate however you want - login/logout works just fine
  • Install Maintenance plugin
  • Enable maintenance mode
  • Go to any page
  • Login (even with same admin user)
  • Logout won't work anymore - will give

Forbidden
You don't have permission to access /task:login.logout/logout-nonce:xxx on this server.

So basically, if I login through Maintenance login form, I can't logout due to that error, but if I login through default login form on some restricted access page, then I can logout without a problem.

Could it be something with maintenance.md form config?

form:
    name: login
    action:
    method: post
    login:
        forgot_button: false

    fields:
        - name: username
          type: text
          placeholder: PLUGIN_LOGIN.USERNAME
          label: PLUGIN_LOGIN.USERNAME
          autofocus: true

        - name: password
          type: password
          placeholder: PLUGIN_LOGIN.PASSWORD
          label: PLUGIN_LOGIN.PASSWORD

Although I don't see anything special

@ghost
Copy link

ghost commented Feb 28, 2022

Same problem ___ but work when i reload the page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant