From 0a5d116f719893dd0632c50a45872bbb99f543bf Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Mon, 30 Oct 2023 15:42:01 +0800 Subject: [PATCH] Update SimpleMathsCaptchaGenerator.cs --- .../Security/Captcha/SimpleMathsCaptchaGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Security/Captcha/SimpleMathsCaptchaGenerator.cs b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Security/Captcha/SimpleMathsCaptchaGenerator.cs index e4e16f52ae..f4f8ee85ed 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Security/Captcha/SimpleMathsCaptchaGenerator.cs +++ b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Security/Captcha/SimpleMathsCaptchaGenerator.cs @@ -128,7 +128,7 @@ public class SimpleMathsCaptchaGenerator : ITransientDependency var text = character.ToString(); var color = options.TextColor[random.Next(0, options.TextColor.Length)]; var location = new PointF(startWith + position, random.Next(6, 13)); - image.Mutate(ctx => ctx.DrawText(text, font, color, location));D + image.Mutate(ctx => ctx.DrawText(text, font, color, location)); position += TextMeasurer.MeasureSize(character.ToString(), new TextOptions (font) { Origin = location