我已经将magento的原生captcha用于自定义页面,如此链接所示。但它只在用户未登录时显示。但我也想为登录用户显示magento的原生captcha。有什么办法做到这一点吗?
您是否尝试手动将captcha添加到模板中?不是通过布局方法?
echo $this->getLayout()->createBlock('captcha/captcha')
->setFormId('module_unique')
->setImgWidht(230)
->setImgHeight(50)
->toHtml();
正如该链接中提到的,您还需要加载mage/catcha.js才能使其工作。