 
 ###
 # In-memory user database store. Such web scales, very wow.
+# This is only used if USE_REDIS_SESSION is set to 0.
 ###
 USERS = {}
 



passport.deserializeUser (id, done) ->
  if not USERS[id]
    done new Error "Cannot find user", id
  else
    done null, USERS[id]


router.get '/', ensureLoggedIn('/index'), (req, res) ->


{ensureLoggedIn}    = require 'connect-ensure-login'

use_redis_store = process.env.USE_REDIS_SESSION is '1'


###
# In-memory user database store. Such web scales, very wow.
###
USERS = {}

# Configure google login
protocol = if process.env.USE_SSL is '1' then 'https' else 'http'
