Skip to content

Instantly share code, notes, and snippets.

@LeCoupa
Last active February 27, 2020 05:54
Show Gist options
  • Save LeCoupa/9878915 to your computer and use it in GitHub Desktop.
Save LeCoupa/9878915 to your computer and use it in GitHub Desktop.
Sign out system with Meteor --> https://github.com/LeCoupa/awesome-cheatsheets
<template name="SignOut">
<div class="connected">
<span class="welcome">Welcome New Meteorite!</span>
<a class="sign-out" href="/" id="signOut">Sign Out</a>
</div>
<!-- end .connected -->
</template>
Template.SignOut.events({
'click #signOut': function(e, t) {
Meteor.logout(function() {
console.log('Bye Meteorite! Come back whenever you want!');
});
return false;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment