Skip to content

Commit df1bae0

Browse files
author
Ken Johnson
authored
Merge pull request #379 from presidentbeef/strip_whitespace_email_at_login
Strip whitespace from email when logging in
2 parents 55b4e21 + 6acf74a commit df1bae0

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)