Captcha Image is not displayed as the older version.
saineshwar opened this issue · comments
Saineshwar Bageri commented
Captcha Image is not displayed as the older version and Noise is also not showing properly.
New Version
Old Version
Environment
DNTCaptcha.Core version: 4.3.3
.NET Core SDK version: .Net 5.0
IDE: VS 2019
Example code/Steps to reproduce:
View Code
----------------
<dnt-captcha asp-captcha-generator-max="999999"
asp-captcha-generator-min="111111"
asp-captcha-generator-language="English"
asp-captcha-generator-display-mode="ShowDigits"
asp-use-relative-urls="true"
asp-placeholder="Enter Security code"
asp-validation-error-message="Please enter the security code."
asp-font-name="Tahoma"
asp-font-size="20"
asp-fore-color="#333333"
asp-back-color="#FCF6F5FF"
asp-text-box-class="text-box form-control"
asp-text-box-template="<span class='input-group-prepend'><span class='form-group-text'></span></span>{0}"
asp-validation-message-class="text-danger"
asp-refresh-button-class="fas fa-redo btn-sm"
asp-dir="ltr"
asp-use-noise="true" />
Startup Code
----------------
services.AddDNTCaptcha(options =>
options.UseCookieStorageProvider()
.ShowThousandsSeparators(false)
.WithEncryptionKey("9F3baE2KFTM7m0C^tt%^Ag")
.AbsoluteExpiration(minutes: 7)
.WithNoise(pixelsDensity: 50, linesCount: 10)
);
Output:
Exception message:
Full Stack trace:
Vahid Nasiri commented
Yes. If you are not happy with it, you can change it and implement your own image provider. or you can use the old provider as well.
Saineshwar Bageri commented
Yes. If you are not happy with it, you can change it and implement your own image provider. or you can use the old provider as well.
Image is displayed as box need to increase image width which will make it good.
Example:-