feat(cops): clean rubocop run
1. ignoring one file because it's an intentional vuln 2. made a few small semantic changes, but verified that they're equivalent.
This commit is contained in:
@@ -13,7 +13,8 @@ class SessionsController < ApplicationController
|
||||
begin
|
||||
# Normalize the email address, why not
|
||||
user = User.authenticate(params[:email].to_s.downcase, params[:password])
|
||||
rescue Exception => e
|
||||
rescue RuntimeError => e
|
||||
# don't do ANYTHING
|
||||
end
|
||||
|
||||
if user
|
||||
@@ -25,7 +26,7 @@ class SessionsController < ApplicationController
|
||||
redirect_to path
|
||||
else
|
||||
flash[:error] = e.message
|
||||
render "new"
|
||||
render "sessions/new"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user