Skip to content

Commit 5cb982a

Browse files
authored
Merge pull request #148 from actblue/rails_51
Replace `render :nothing` with `head`
2 parents dd2ccc8 + f448cc7 commit 5cb982a

File tree

1 file changed

+1
-1
lines changed
  • lib/two_factor_authentication/controllers

1 file changed

+1
-1
lines changed

lib/two_factor_authentication/controllers/helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def handle_failed_second_factor(scope)
2424
session["#{scope}_return_to"] = request.original_fullpath if request.get?
2525
redirect_to two_factor_authentication_path_for(scope)
2626
else
27-
render nothing: true, status: :unauthorized
27+
head :unauthorized
2828
end
2929
end
3030

0 commit comments

Comments
 (0)