diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 203f116..3221cb4 100755 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -12,7 +12,7 @@ class SessionsController < ApplicationController path = params[:url].present? ? params[:url] : home_dashboard_index_path begin # Normalize the email address, why not - user = User.authenticate(params[:email].to_s.downcase, params[:password]) + user = User.authenticate(params[:email].to_s.strip.downcase, params[:password]) rescue RuntimeError => e # don't do ANYTHING end diff --git a/app/views/dashboard/home.html.erb b/app/views/dashboard/home.html.erb index 36e5d6b..b103978 100644 --- a/app/views/dashboard/home.html.erb +++ b/app/views/dashboard/home.html.erb @@ -1,43 +1,37 @@
| Full Name | +Full Name | Income | -Bonus/th> + | Bonus | Years w/ MetaCorp | SSN | -DoB | +DoB |
|---|---|---|---|---|---|---|---|---|
| <%= "#{@user.first_name} #{@user.last_name}" %> | <%= @user.work_info.income %> | <%= @user.work_info.bonuses %> | <%= @user.work_info.years_worked %> | -<%= @user.work_info.SSN %> | - - - -<%= @user.work_info.DoB %> | +<%= @user.work_info.SSN %> | + + + +<%= @user.work_info.DoB %> |