This commit is contained in:
han0
2020-11-19 16:17:31 +08:00
parent 65f9395106
commit 5325f19f79
2 changed files with 6 additions and 0 deletions

View File

@@ -6,6 +6,9 @@ from captcha.image import ImageCaptcha
class SimpleImageCaptcha:
"""
图片验证码
"""
def __init__(self, width=150, height=50, captcha_length=4, characters=string.digits, *args, **kwargs):
self.__width = width

View File

@@ -4,6 +4,9 @@ from nc_http.core.verification.image import SimpleImageCaptcha
class BaseCaptchaStorage(ABC):
"""
验证码信息池
"""
@classmethod
def create(cls, *args, **kwargs):