lib/gatleon/rails/authform/concern.rb in gatleon-rails-0.1.8 vs lib/gatleon/rails/authform/concern.rb in gatleon-rails-0.1.9

- old
+ new

@@ -25,10 +25,10 @@ end define_method :_exchange_user_voucher_for_user do if params[:_authformForm] == form_uid && params[:_authformUserVoucher] # TODO: headers for api verification - response = Faraday.get("#{authform_base_url}/v1/exchangeUserVoucherForUser/#{params[:_authformUserVoucher]}") + response = Faraday.get("#{_authform_base_url}/v1/exchangeUserVoucherForUser/#{params[:_authformUserVoucher]}") if response.status == 200 cookies[_authform_user_cookie_key] = { value: response.body, domain: :all