Skip to content

Instantly share code, notes, and snippets.

@skipjac
Created June 13, 2011 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skipjac/1023130 to your computer and use it in GitHub Desktop.
Save skipjac/1023130 to your computer and use it in GitHub Desktop.
For non logged in users to the login page in Zendesk
<div id="forcedLogin">
</div>
<script>
$j(document).ready(function() {
if('{{current_user.name}}' == 'Anonymous user'){
window.location="/login"
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment