diff --git a/README.md b/README.md index 1ad66a1..1d5fb68 100644 --- a/README.md +++ b/README.md @@ -52,10 +52,10 @@ app = Flask(__name__) "CAPTCHA_LOG": True # show captcha requests and logs in terminal > stdout } - Master_captcha = FlaskCaptcha(app=app) # app is required + MasterCaptcha = FlaskCaptcha(app=app) # app is required # passing config list directly - google_captcha2 = Master_captcha.getGoogleCaptcha2(name='g-captcha2', conf=google_captcha2_config_list) - google_captcha3 = Master_captcha.getGoogleCaptcha3(name='g-captcha3', conf=google_captcha3_config_list) + google_captcha2 = MasterCaptcha.getGoogleCaptcha2(name='g-captcha2', conf=google_captcha2_config_list) + google_captcha3 = MasterCaptcha.getGoogleCaptcha3(name='g-captcha3', conf=google_captcha3_config_list) # Names are important. Do not use repeated names and choose names with meaning ``` @@ -76,13 +76,13 @@ app = Flask(__name__) ##### -> remember name argument in crating a captcha object ```python - google_captcha2 = Master_captcha.getGoogleCaptcha2(name='g-captcha2') - google_captcha3 = Master_captcha.getGoogleCaptcha3(name='g-captcha3') +google_captcha2 = Master_captcha.getGoogleCaptcha2(name='g-captcha2') # name +google_captcha3 = Master_captcha.getGoogleCaptcha3(name='g-captcha3') # name ``` -for rendering a captcha width you should pass < model_name > to < captcha.render_captcha > +for rendering a captcha width you should pass name to < model_name > in < captcha.render_captcha > -Version 2 Captcha rendering example: +## rendering Google Version 2 Captcha: ```html @@ -96,21 +96,20 @@ Version 2 Captcha rendering example:
@@ -203,7 +201,6 @@ def index(): > - Add Captcha version 3 and fix some bugs in captcha version 2 - version 3.5.0 Released: October 27, 2023 - - Changes: > - reformat/Refactor project structure @@ -214,3 +211,10 @@ def index(): > - adding name spacing for each captcha > - adding the ability to create multiple captchas with different versions > - adding pytest base test + + +- version 3.5.1 Released: July 21, 2024 +- Changes: + + > - reformat/Refactor code + > - rename render_captcha parameters