Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add onBefore|After logout events

  • Loading branch information...
commit 5e3a0e11e574f4bd6d18883c371d77b64345e1f0 1 parent 7929a21
@mattlevine mattlevine authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 requirements/mura/login/loginManager.cfc
View
9 requirements/mura/login/loginManager.cfc
@@ -309,13 +309,22 @@ version 2 without this exception. You may, if you choose, apply this exception
</cfif>
<cfif len(pluginEvent.getValue("siteID"))>
<cfset getPluginManager().announceEvent('onSiteLogout',pluginEvent)/>
+ <cfset getPluginManager().announceEvent('onBeforeSiteLogout',pluginEvent)/>
<cfelse>
<cfset getPluginManager().announceEvent('onGlobalLogout',pluginEvent)/>
+ <cfset getPluginManager().announceEvent('onBeforeGlobalLogout',pluginEvent)/>
</cfif>
+
<cflogout>
<cfset structclear(session) />
<cfcookie name="userid" expires="never" value="" />
<cfset variables.userUtility.setUserStruct()/>
+
+ <cfif len(pluginEvent.getValue("siteID"))>
+ <cfset getPluginManager().announceEvent('onAfterSiteLogout',pluginEvent)/>
+ <cfelse>
+ <cfset getPluginManager().announceEvent('onAfterGlobalLogout',pluginEvent)/>
+ </cfif>
</cffunction>
</cfcomponent>
Please sign in to comment.
Something went wrong with that request. Please try again.