Skip to content

Commit 6acf74a

Browse files
committed
Strip whitespace from email when logging in
Makes it a little easier to copy-paste credentials
1 parent 70d4144 commit 6acf74a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/sessions_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def create
1212
path = params[:url].present? ? params[:url] : home_dashboard_index_path
1313
begin
1414
# Normalize the email address, why not
15-
user = User.authenticate(params[:email].to_s.downcase, params[:password])
15+
user = User.authenticate(params[:email].to_s.strip.downcase, params[:password])
1616
rescue RuntimeError => e
1717
# don't do ANYTHING
1818
end

0 commit comments

Comments
 (0)