mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
clear all session data on deleted accounts
This commit is contained in:
parent
0ba95a6091
commit
dd61eb321f
@ -3,7 +3,7 @@
|
||||
begin
|
||||
User.find(session[:user]) if session[:user]
|
||||
rescue Mongoid::Errors::DocumentNotFound
|
||||
session[:user] = nil
|
||||
session = {}
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
window.location.href="<%= homepage_path %>"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user