coldbox-modules / totp

A CFML Implementation of Time-based One-time Passwords
MIT License
14 stars 6 forks source link

imageGetBufferedImage function call is not necessary #8

Open ciyatg opened 1 year ago

ciyatg commented 1 year ago

https://github.com/coldbox-modules/totp/blob/586ea133d73482ac655fb77a46a65703412da04b/index.cfm#L38

Calling the "imageGetBufferedImage" function with the "application.totpConfig.qrCode" argument creates the "Could not convert the value of type class java.awt.image.BufferedImage to binary" error. Removing "imageGetBufferedImage" solves the issue. I am using is Coldfusion 2021 release.