Skip to content

Call ahoy.reset during Warden before_logout hook#547

Open
seanpdoyle wants to merge 1 commit intoankane:masterfrom
seanpdoyle:warden-before-logout
Open

Call ahoy.reset during Warden before_logout hook#547
seanpdoyle wants to merge 1 commit intoankane:masterfrom
seanpdoyle:warden-before-logout

Conversation

@seanpdoyle
Copy link
Copy Markdown

In addition to the after_set_user hook, the Warden::Manager also supports a before_logout hook.

This commit integrates with that hook to call ahoy.reset so that subsequent visits will be anonymous, and subsequent authenticated sessions will create a new Visit.

In addition to the `after_set_user` hook, the `Warden::Manager` also
supports a [before_logout][] hook.

This commit integrates with that hook to call `ahoy.reset` so that
subsequent visits will be anonymous, and subsequent authenticated
sessions will create a new Visit.

[before_logout]: https://www.rubydoc.info/gems/warden/1.2.6/Warden/Hooks#before_logout-instance_method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant