damirkusar / AspNetCore.Totp

Time-based One-time Password Algorithm to be used with Google Authenticator
MIT License
70 stars 28 forks source link

return File(qrCode.QrCodeImageBytes, "image/png"); not working #8

Closed HassanZeitoun closed 11 months ago

HassanZeitoun commented 2 years ago

return File(qrCode.QrCodeImageBytes, "image/png"); always giving me that 'TotpSetup' does not contain a definition for 'QrCodeImageBytes' and no accessible extension method 'QrCodeImageBytes' accepting a first argument of type 'TotpSetup' could be found (are you missing a using directive or an assembly reference?)

everything else works fine

simon-curtis commented 2 years ago

Which version are you using? 2.3.0 (current nuget version) or 3.0.0 (current repo version)

sujit1779 commented 11 months ago

I think you should use below line for version 2.3.0 return File(qrCode.QrCodeImage, "image/png");