added cookies.permanent in replacement of session
This commit is contained in:
@@ -19,7 +19,7 @@ class SessionsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
if user
|
if user
|
||||||
session[:user_id] = user.user_id if User.where(:user_id => user.user_id).exists?
|
cookies.permanent[:auth_token = user.auth_token ] if User.where(:user_id => user.user_id).exists?
|
||||||
redirect_to path
|
redirect_to path
|
||||||
else
|
else
|
||||||
# Removed this code, just doesn't seem specific enough!
|
# Removed this code, just doesn't seem specific enough!
|
||||||
|
|||||||
Reference in New Issue
Block a user