Browse Source

Merge pull request #148 from actblue/rails_51

Replace `render :nothing` with `head`
master
Dmitrii Golub 6 years ago committed by GitHub
parent
commit
5cb982ad4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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?
redirect_to two_factor_authentication_path_for(scope)
else
render nothing: true, status: :unauthorized
head :unauthorized
end
end

Loading…
Cancel
Save