about summary refs log tree commit diff
path: root/app/controllers/concerns
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-03-22 20:22:18 +0100
committerGitHub <noreply@github.com>2019-03-22 20:22:18 +0100
commit9f56511860493b770c2e535be0f8ce4777c8d373 (patch)
tree681e3e5a0c0206210e71a187a11c010646d82050 /app/controllers/concerns
parentbde9196b70299405ebe9b16500b7a3f65539b2c3 (diff)
parentedd54411124b271622d7a2af4efdfe1a0a35cac4 (diff)
Merge pull request #965 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/controllers/concerns')
-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