|
|
@ -33,7 +33,7 @@ class Devise::TwoFactorAuthenticationController < DeviseController |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
warden.session(resource_name)[TwoFactorAuthentication::NEED_AUTHENTICATION] = false |
|
|
|
warden.session(resource_name)[TwoFactorAuthentication::NEED_AUTHENTICATION] = false |
|
|
|
sign_in resource_name, resource, :bypass => true |
|
|
|
bypass_sign_in(resource, scope: resource_name) |
|
|
|
set_flash_message :notice, :success |
|
|
|
set_flash_message :notice, :success |
|
|
|
resource.update_attribute(:second_factor_attempts_count, 0) |
|
|
|
resource.update_attribute(:second_factor_attempts_count, 0) |
|
|
|
|
|
|
|
|
|
|
|