assigned a user id, does not "appear" to have screwed anything up

This commit is contained in:
Ken Johnson
2013-05-24 15:25:06 -04:00
parent 383835d57d
commit 0d841124f5
13 changed files with 31 additions and 17 deletions
@@ -64,7 +64,7 @@
end
if user
session[:id] = user.id if User.where(:id => user.id).exists?
session[:user_id] = user.user_id if User.where(:user_id => user.user_id).exists?
redirect_to home_dashboard_index_path
else
flash[:error] = e.message
@@ -103,7 +103,7 @@
end
if user
session[:id] = user.id if User.where(:id => user.id).exists?
session[:user_id] = user.user_id if User.where(:user_id => user.user_id).exists?
redirect_to home_dashboard_index_path
else
flash[:error] = "Either your username and password is incorrect" #e.message