wmlele / devise-otp

Two Factors authentication for Devise using Time Based OTP/rfc6238 tokens.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to plugin into core rotp lib constructor? How to keep block once verified otp?

nazarhussain opened this issue · comments

Hello,

One thing I need to ask, does otp_drift_window is same as duration https://github.com/mdp/rotp/blob/master/lib/rotp/totp.rb#L10 and if I need to set it to less than 1 minute how can do it?

Other question is I need to block an otp if once verified. So it must not came back again with in that drift window. Is there any hook available from which I can build my own logic of verification?

You might be able to do something with some monkey patching. Anyway I am closing this as stale & old.