The default captcha implementation generates and verifies an image. In the default captcha image, a sequence of digits 0-9 is used with a defined length of 5.
Configuring in Casdoor
To configure the default captcha in Casdoor, follow these steps:
Create a new provider in Casdoor.
Select the category as Captcha, and the type as Default.
Click on the Preview button to preview the style of this captcha.
Applying in your application
To apply the default captcha in your application, do the following:
- Edit the application you want to configure in Casdoor.
- Select the provider that you just added. There are three types of rules available:
Always: Always requires human-machine verification during login.
None: Never requires human-machine verification. The account will be blocked if it attempts to login with the wrong password for the 5th time within 15 minutes. The block will be lifted after 15 minutes.
Dynamic: After 5 failed login attempts, human-machine verification will be required but the account will not be blocked.
We also provide a demo video to demonstrate the differences in rules, which we hope will be helpful to you.