Skip to content

Instantly share code, notes, and snippets.

@stevewithington
Created May 22, 2014 20:16
Show Gist options
  • Save stevewithington/15a2c0d6d4ac9d8f31b8 to your computer and use it in GitHub Desktop.
Save stevewithington/15a2c0d6d4ac9d8f31b8 to your computer and use it in GitHub Desktop.
Mura CMS : Redirect user after logout
<cfscript>
public any function standardPostLogoutHandler($, event) {
// you could redirect the user to any url you want here
location(url=arguments.$.createHREF(filename='about'), addtoken=false);
}
</cfscript>
@lxcodes
Copy link

lxcodes commented May 29, 2014

@stevewithington Why isn't this onAfterLogout? Just curious is all. Seems like an odd naming convention and straying from consistency from the rest of the event hooks. Is there a nice documented list of the event hooks contained in Mura? Seems like I'm always stumbling on new ones while browsing.

@stevewithington
Copy link
Author

the events are documented under http://docs.getmura.com/v6/back-end/events/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment