From 6df48c1413a14516e7ee8919f33fbc13f0141966 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 1 Aug 2026 02:39:59 +0200 Subject: Show and extend the elevation window A banner appears while elevated, counting down in minutes and carrying extend and drop controls. Three extensions of 30 minutes are allowed, so the window is at most two hours without a fresh code; a code resets the budget. The countdown is advisory, the server-side check authoritative, so it says "expired" rather than vanishing. The post-login flash tells an admin the timer has started. --- config/routes.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index 4c37e70f..58e1e632 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -106,7 +106,9 @@ Cccms::Application.routes.draw do end resource :otp_enrollment, :only => [:show, :create, :update, :destroy] resource :otp_challenge, :only => [:new, :create] - resource :elevation, :only => [:new, :create, :destroy] + resource :elevation, :only => [:new, :create, :destroy] do + post :renew + end resources :menu_items, :except => :show do member do -- cgit v1.3