jorenvanhee / craft-template-guard

Password protect any page or entry in Craft CMS.
Other
5 stars 0 forks source link

Logout option #14

Closed bartrylant closed 8 months ago

bartrylant commented 1 year ago

Would it be possible to also make a logout option? Or can it be as easy as just deleting the set cookie?

jorenvanhee commented 1 year ago

Deleting the cookie will indeed do the job.

There's one caveat though: if you use multiple "guards", the user will be logged out of all of them.

I could add a better logout feature, but maybe deleting the cookie is good enough for your use case. Let me know!

jorenvanhee commented 8 months ago

Added in the latest release.