diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-01 02:39:59 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-01 02:39:59 +0200 |
| commit | 6df48c1413a14516e7ee8919f33fbc13f0141966 (patch) | |
| tree | d81df761eb6607a6f4508241c043375e9860679d /config/routes.rb | |
| parent | f6c1f0f08f031778a491465d35ac694bfcdc12b0 (diff) | |
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.
Diffstat (limited to 'config/routes.rb')
| -rw-r--r-- | config/routes.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
| 106 | end | 106 | end |
| 107 | resource :otp_enrollment, :only => [:show, :create, :update, :destroy] | 107 | resource :otp_enrollment, :only => [:show, :create, :update, :destroy] |
| 108 | resource :otp_challenge, :only => [:new, :create] | 108 | resource :otp_challenge, :only => [:new, :create] |
| 109 | resource :elevation, :only => [:new, :create, :destroy] | 109 | resource :elevation, :only => [:new, :create, :destroy] do |
| 110 | post :renew | ||
| 111 | end | ||
| 110 | 112 | ||
| 111 | resources :menu_items, :except => :show do | 113 | resources :menu_items, :except => :show do |
| 112 | member do | 114 | member do |
