Module: StandardId::ApplicationHelper
- Defined in:
- app/helpers/standard_id/application_helper.rb
Instance Method Summary collapse
-
#otp_code_length ⇒ Object
The configured OTP code length, clamped to the engine’s supported range (4..10).
Instance Method Details
#otp_code_length ⇒ Object
The configured OTP code length, clamped to the engine’s supported range (4..10). Views use this so the verification-code input’s ‘maxlength` stays in sync with the length of codes the generator actually produces.
6 7 8 |
# File 'app/helpers/standard_id/application_helper.rb', line 6 def otp_code_length StandardId::Passwordless.otp_code_length end |