From f448cc7db6357b574979562972b67c998ea934a0 Mon Sep 17 00:00:00 2001 From: Bill Kirtley Date: Thu, 7 Jun 2018 16:24:08 -0400 Subject: [PATCH] Replace `render :nothing` with `head` fixes Houdini/two_factor_authentication#147 --- lib/two_factor_authentication/controllers/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/two_factor_authentication/controllers/helpers.rb b/lib/two_factor_authentication/controllers/helpers.rb index f8a084d..9a92fa7 100644 --- a/lib/two_factor_authentication/controllers/helpers.rb +++ b/lib/two_factor_authentication/controllers/helpers.rb @@ -24,7 +24,7 @@ module TwoFactorAuthentication session["#{scope}_return_to"] = request.original_fullpath if request.get? redirect_to two_factor_authentication_path_for(scope) else - render nothing: true, status: :unauthorized + head :unauthorized end end