mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-13 10:54:23 +01:00
replace old prototype/jrails code for periodic checks and start work on autocomplete and edit projects
Signed-off-by: Reinier Balt <lrbalt@gmail.com>
This commit is contained in:
parent
69c811e365
commit
c834403340
24 changed files with 588 additions and 53 deletions
|
|
@ -86,12 +86,17 @@ class LoginController < ApplicationController
|
|||
return unless should_expire_sessions?
|
||||
# Get expiry time (allow ten seconds window for the case where we have none)
|
||||
expiry_time = session['expiry_time'] || Time.now + 10
|
||||
<<<<<<< HEAD
|
||||
@time_left = expiry_time - Time.now
|
||||
if @time_left < (10*60) # Session will time out before the next check
|
||||
@msg = 'login.session_time_out'
|
||||
else
|
||||
@msg = ""
|
||||
end
|
||||
=======
|
||||
time_left = expiry_time - Time.now
|
||||
@session_expired = ( time_left < (10*60) ) # Session will time out before the next check
|
||||
>>>>>>> replace old prototype/jrails code for periodic checks and start work on autocomplete and edit projects
|
||||
end
|
||||
end
|
||||
respond_to do |format|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue