Registered users logout

Permalink 1 user found helpful
Hi there,

I am building a website that has a section for registered users. I would like to add a button or a link to logout, is there a link for that?

Thank you!
V.

byvictoria
 
mkly replied on at Permalink Reply
mkly
Core::make('helper/navigation')->getLogInOutLink();

Should do the trick.
byvictoria replied on at Permalink Reply
byvictoria
Thank you mkly!
Where should I add that line of code? and once I add it, is the logout link going to show in the footer? Can I make a link myself?
I know some basics, but I am not a programmer...

Thanks again!
V.
axiandev replied on at Permalink Reply
axiandev
I get undefined method for getLogInOutLink() ... ?? 5.7.3.1
axiandev replied on at Permalink Reply
axiandev
I wound up using:

URL::to('/login', 'logout', Loader::helper('validation/token')->generate('logout'))