working on cleaning up and testing if I can push changes to a PR

This commit is contained in:
cktricky
2014-03-14 09:07:52 -04:00
parent b9f61b3686
commit 8daeee09f2
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ class SessionsController < ApplicationController
if params[:remember_me]
cookies.permanent[:auth_token] = user.auth_token if User.where(:user_id => user.user_id).exists?
else
cookies[:auth_token] = user.auth_token if User.where(:user_id => user.user_id).exists?
session[:user_id] = user.user_id if User.where(:user_id => user.user_id).exists?
#cookies[:auth_token] = user.auth_token if User.where(:user_id => user.user_id).exists?
end
redirect_to path
else