|
|
|
@ -1,6 +1,11 @@
|
|
|
|
|
class Devise::TwoFactorAuthenticationController < DeviseController |
|
|
|
|
prepend_before_filter :authenticate_scope! |
|
|
|
|
before_filter :prepare_and_validate, :handle_two_factor_authentication |
|
|
|
|
if Rails::VERSION::MAJOR >= 4 |
|
|
|
|
prepend_before_action :authenticate_scope! |
|
|
|
|
before_action :prepare_and_validate, :handle_two_factor_authentication |
|
|
|
|
else |
|
|
|
|
prepend_before_filter :authenticate_scope! |
|
|
|
|
before_filter :prepare_and_validate, :handle_two_factor_authentication |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def show |
|
|
|
|
end |
|
|
|
|