assigned a user id, does not "appear" to have screwed anything up
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user