• Resolved weboved

    (@weboved)


    Hi,

    Is there any possibility to create like logout button?
    For example: visitor open an url/website. He receive a window to put the password. He did it and he receive an access to the page/website. Then he press “logout” button and after this action he hasn’t possibility to see pages, just need to put password again.

Viewing 1 replies (of 1 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @weboved,

    thanks for your question!

    That would be pretty easy to do actually.

    I built a small code snippet for your functions.php here: https://gist.github.com/patrickposner/21ca64cb1dd2159a36231e3055cc3619

    Place the shortcode [passster-logout] on your page and a button should appear.
    When someone clicks the button, it deletes the current password and logs the user out.

    There is also an optional redirect which you can use to redirect the user to a logout page or something like that.

    Best regards,
    Patrick

Viewing 1 replies (of 1 total)
  • The topic ‘Logout Button’ is closed to new replies.