We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dd2ccc8 + f448cc7 commit 5cb982aCopy full SHA for 5cb982a
lib/two_factor_authentication/controllers/helpers.rb
@@ -24,7 +24,7 @@ def handle_failed_second_factor(scope)
24
session["#{scope}_return_to"] = request.original_fullpath if request.get?
25
redirect_to two_factor_authentication_path_for(scope)
26
else
27
- render nothing: true, status: :unauthorized
+ head :unauthorized
28
end
29
30
0 commit comments