about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-03-22 13:05:17 +0100
committerThibaut Girka <thib@sitedethib.com>2019-03-22 13:05:17 +0100
commitedd54411124b271622d7a2af4efdfe1a0a35cac4 (patch)
tree681e3e5a0c0206210e71a187a11c010646d82050 /app/controllers
parentbde9196b70299405ebe9b16500b7a3f65539b2c3 (diff)
parent3411fbef19c71f3a60e9fbb175a0728a6cfc2ed8 (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/concerns/account_controller_concern.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/concerns/account_controller_concern.rb b/app/controllers/concerns/account_controller_concern.rb
index 8817fd7de..4f28941ae 100644
--- a/app/controllers/concerns/account_controller_concern.rb
+++ b/app/controllers/concerns/account_controller_concern.rb
@@ -69,6 +69,10 @@ module AccountControllerConcern
   end
 
   def check_account_suspension
-    gone if @account.suspended?
+    if @account.suspended?
+      skip_session!
+      expires_in(3.minutes, public: true)
+      gone
+    end
   end
 end