mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-01 14:58:50 +01:00
fix merge errors and some tests
This commit is contained in:
parent
0f525436ff
commit
f2d977e12a
7 changed files with 17 additions and 34 deletions
|
|
@ -86,17 +86,8 @@ 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