templates/app/controllers/concerns/authable.rb.tt in hephaestus-0.8.13 vs templates/app/controllers/concerns/authable.rb.tt in hephaestus-0.8.14
- old
+ new
@@ -13,10 +13,9 @@
SHA256_DIGEST = OpenSSL::Digest.new("sha256")
sig { void }
def <%= plug_name %>_calling_back?
state = params.fetch(:state, "")
- state = params.fetch(:state, "")
state_obj = parse_state(state)
nonce = state_obj.fetch(:nonce, "")
return true if ActiveSupport::SecurityUtils.secure_compare(nonce, <%= upcase_plug_name %>_APP_NONCE)