Skip to content

In dev54, the captcha of backend (Admin Login and Admin Forget Password) can't display. #429

Closed
@SunshineTech

Description

@SunshineTech

The captcha can display after modifying code as following:

//Magento\Captcha\Helper\Data
/**
* Get captcha image base URL
*
* @param mixed $website
* @return string
*/
public function getImgUrl($website = null)
{
return $this->_storeManager->getStore()->getBaseUrl(\Magento\App\Dir::MEDIA) . 'captcha'
// . '/' . $this->_storeManager->getWebsite($website)->getCode() . '/';
. '/' . $this->_getWebsiteCode($website) . '/';
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions