AsteriskLabs / devise_google_authenticator

A Devise extension to allow your app to utilise Google's 2FA Mobile app
http://labs.asteriskinfosec.com.au/tag/devise_google_authenticator/
MIT License
216 stars 156 forks source link

[Rails 5.1] Compatibility with Rails 5.1 #66

Closed Bodhisattva2-0 closed 6 years ago

Bodhisattva2-0 commented 6 years ago

This is related to Rails 5 upgrade on Harrys codebase and https://github.com/harrystech/cacheable-flash-mootools-harrys/pull/3 Changes:

  1. Use before_action instead of before_filter
  2. Use prepend_before_action instead of prepend_before_filter. Filter callbacks are renamed for readability in Rails 5. There is no change in behavior.