Skip to content
Snippets Groups Projects
Commit 3e1e6cb3 authored by Tyler R Lemburg's avatar Tyler R Lemburg
Browse files

Added auto-logout if user and kiosk mode after 10 minutes

parent 2ee6251c
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,6 @@ EIGHT_PM_MINUTES = 1200 # end time of calendar ...@@ -14,7 +14,6 @@ EIGHT_PM_MINUTES = 1200 # end time of calendar
</h1> </h1>
</div> </div>
<% if kiosk_mode %> <% if kiosk_mode %>
<div class="kiosk-buttons"> <div class="kiosk-buttons">
<% if @user %> <% if @user %>
...@@ -275,3 +274,11 @@ require(['jquery', '/js/functions.js', '/js/jquery.mousewheel.min.js', '/js/jque ...@@ -275,3 +274,11 @@ require(['jquery', '/js/functions.js', '/js/jquery.mousewheel.min.js', '/js/jque
}); });
}); });
</script> </script>
<% if @user && kiosk_mode # auto logout after 10 minutes! %>
<script type="text/javascript">
window.setTimeout(function() {
window.location = '/kiosk-logout/?url_redirect=' + encodeURIComponent(window.location);
}, 10*60*1000);
</script>
<% end %>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment