I have implemented two factor authentication using the following gem.
https://github.com/Houdini/two_factor_authentication
Documentation is simple and clear. This works fine when users tries to sign in. But when signing up the below action in user.rb is not working.
def send_two_factor_authentication_code(code)
end
code in the above is the generated OTP
https://github.com/Houdini/two_factor_authentication
How can i make the above action works when user is signing up too?
As a OP of this question, I have followed this simple solution below to implement this and it works perfectly.
https://www.mccartie.com/tech/2015/10/20/sms-verification.html