|
|
@ -1,6 +1,11 @@ |
|
|
|
class Devise::TwoFactorAuthenticationController < DeviseController |
|
|
|
class Devise::TwoFactorAuthenticationController < DeviseController |
|
|
|
|
|
|
|
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! |
|
|
|
prepend_before_filter :authenticate_scope! |
|
|
|
before_filter :prepare_and_validate, :handle_two_factor_authentication |
|
|
|
before_filter :prepare_and_validate, :handle_two_factor_authentication |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def show |
|
|
|
def show |
|
|
|
end |
|
|
|
end |
|
|
|