CaptchaService Class

验证码生成服务。

Definition

Namespace: QuickAdmin.RCL.Services
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 2.0.13
C#
public class CaptchaService : ICaptchaService
Inheritance
object    CaptchaService
Implements
ICaptchaService

Remarks

本类使用了跨平台的开源图形库 SkiaSharp。 可通过继承此类并重写相关方法来定制验证码的生成、验证等操作。

Constructors

CaptchaServiceInitializes a new instance of the CaptchaService class

Properties

Protected Properties

logger 系统日志。

Methods

Public Methods

ClearAsync 清除验证码。
CreateAsync 生成验证码。
VerifyAsync 验证验证码。

Protected Methods

CreateCaptchaCode 创建一个指定长度的随机验证码字符串。
CreateCaptchaImageBuffer 创建验证码图片。

See Also