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

Prevent from displaying QR code again #48

Closed phyzalis closed 8 years ago

phyzalis commented 8 years ago

Hi

I would like to block access to users/displayqr because after user logs in, the session is used by people who are not supposed to be able able to open sessions themself.

Is there a way to patch the display qr controller?

phyzalis commented 8 years ago

I managed to make it work I only had to redefine my own routes in config/routes.rb with a custom controller