the redis.identity_verification_code_ttl_seconds
config property is not being respected
#2104
Labels
bug
Something isn't working
Bug Description
We have a
redis.identity_verification_code_ttl_seconds
config property that's used when generating the verification code message sent to an end user. But we don't use that property when actually setting the verification code in the redis cache, meaning that the verification code effectively expires based on thedefault_ttl_seconds
property, and is therefore not in line with what's communicated to the end user (or with what the admin who set the property would expect)Steps to Reproduce
redis.identity_verification_code_ttl_seconds
to a very low value (e.g.1
) in yourfides.toml
subject_identity_verification_required = true
Fides .env
1pw entrynox -s dev -- pc
to run your dev server with the privacy center UI1
second in the first stepExpected behavior
Verification code shouldn't work after expiration time set in
identity_verification_code_ttl_seconds
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Additional context
Found this while looking through code for review of #2094, not directly related though
The text was updated successfully, but these errors were encountered: