app/controllers/devise/devise_safeguard_controller.rb in safeguard-devise-0.0.3 vs app/controllers/devise/devise_safeguard_controller.rb in safeguard-devise-0.0.4
- old
+ new
@@ -26,10 +26,11 @@
end
def token_ok?
resp = Safeguard::API.is_valid?({
:email => @resource.email,
- :token => params[:safeguard_token]
+ :token => params[:safeguard_token],
+ :token_type => params[:token][:type]
})
resp
end