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 159 forks source link

Custom Views #51

Open austinklenk opened 7 years ago

austinklenk commented 7 years ago

I did generate the devise_google_authenticator views with rails g devise_google_authenticator:views users which resulted in generating the views under the users folder views/users/checkga & views/users/displayqr

My issue is when i login to the app it asks for the code views/users/checkga, how can i have the views/users/checkga as its own layout without rendering the entire app into the view. just have it as its own separate layout.

Things that i have tried

create a controller under the users folder checkga_controller.rb with layout "ga_check" under the views/layouts/ga_check.html.erb though it doesnt work. i also tried the same layout "ga_check" in the checkga_controller.rb in the devise_google_authenticator gem, that didnt work either. any ideas

Thank You.