Skip to content

Fix unhandled exception when decoding invalid truth payload#20

Open
martinmladenov wants to merge 1 commit intoevgeniradev:masterfrom
martinmladenov:fix-exception-on-invalid-truth
Open

Fix unhandled exception when decoding invalid truth payload#20
martinmladenov wants to merge 1 commit intoevgeniradev:masterfrom
martinmladenov:fix-exception-on-invalid-truth

Conversation

@martinmladenov
Copy link

When an invalid truth payload (i.e. not base64-encoded) is provided to the verifier, the following exception is thrown:

uninitialized constant Captchah::Verifier::MessageEncryptor

The reason for this is that the exception handler has an incorrect reference to MessageEncryptor. The reference should include the module: ActiveSupport::MessageEncryptor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant