rbCAS / CASino

CASino is a Ruby-based Single Sign-On solution supporting the CAS standard
MIT License
331 stars 189 forks source link

Can't disable two factor authentication anymore #31

Closed calmyournerves closed 10 years ago

calmyournerves commented 10 years ago

Clicking on the corresponding button when being logged in results in a "Something went wrong"-error.

This is happening because we removed jQuery-ujs together with jQuery and the request is now sent as GET instead of DELETE (or POST with _method=delete). See: https://github.com/rbCAS/CASino/blob/master/app/views/casino/sessions/index.html.erb#L21.

pencil commented 10 years ago

Should we just re-add jQuery or is someone willing to implement a non-jQuery port of the required jQuery-ujs functionality?

calmyournerves commented 10 years ago

Shouldn't be too hard to implement something similar, see https://github.com/rails/jquery-ujs/blob/master/src/rails.js#L160