Skip to content

Commit f448cc7

Browse files
committed
Replace render :nothing with head
fixes #147
1 parent 0cad30d commit f448cc7

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)