Sha256: 4f29da3f28e200d63aab9d22c010a426ba83b5fe8d23160d3aef552eac7f70e5
Contents?: true
Size: 520 Bytes
Versions: 35
Compression:
Stored size: 520 Bytes
Contents
= Allow recovery code on TOTP code field If using the otp feature, for convenience you might want to allow the user to enter the recovery code into the TOTP code field, instead of requiring they use the separate recovery codes form. You can implement this using the following configuration: plugin :rodauth do enable :login, :logout, :otp, :recovery_codes before_otp_auth_route do if recovery_code_match?(param(otp_auth_param)) two_factor_authenticate("recovery_code") end end end
Version data entries
35 entries across 35 versions & 1 rubygems