1 changed files with 1 additions and 2 deletions
@ -1,8 +1,7 @@
|
||||
Warden::Manager.after_authentication do |user, auth, options| |
||||
if user.respond_to?(:need_two_factor_authentication?) |
||||
if auth.session(options[:scope])[:need_two_factor_authentication] = user.need_two_factor_authentication?(auth.request) |
||||
code = user.otp_code |
||||
user.send_two_factor_authentication_code(code) |
||||
user.send_two_factor_authentication_code |
||||
end |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue