Browse Source

Replace `render :nothing` with `head`

fixes Houdini/two_factor_authentication#147
master
Bill Kirtley 7 years ago
parent
commit
f448cc7db6
  1. 2
      lib/two_factor_authentication/controllers/helpers.rb

2
lib/two_factor_authentication/controllers/helpers.rb

@ -24,7 +24,7 @@ module TwoFactorAuthentication
session["#{scope}_return_to"] = request.original_fullpath if request.get? session["#{scope}_return_to"] = request.original_fullpath if request.get?
redirect_to two_factor_authentication_path_for(scope) redirect_to two_factor_authentication_path_for(scope)
else else
render nothing: true, status: :unauthorized head :unauthorized
end end
end end

Loading…
Cancel
Save