Module: AuthHelpers
- Defined in:
- backend/app/lib/auth_helpers.rb
Instance Method Summary collapse
Instance Method Details
#create_session_for(username, expiring_session) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'backend/app/lib/auth_helpers.rb', line 3 def create_session_for(username, expiring_session) session = Session.new session[:user] = username session[:login_time] = Time.now session[:expirable] = expiring_session session.save session end |