Yii2 Invalid CAPTCHA action ID in module
- By Preneesh AV --
- 08-Jun-2019 --
- 140 Comments
Yii2 Invalid CAPTCHA action ID in module
Simple math captcha implementation in yii2 may cause "invalid captcha action id in module error" which can be resolved by below line of code.
You should modify your validation rule in model to match the controller where captcha action is handled as per the documentation:
['verifyCode','captcha','captchaAction'=>'/contactus/default/captcha'],