As Alex Gusev cleared in their [reply][1] Magento2 REST can not distinguish between authenticated andBut there is a method in magento2 for rest api swagger http://devdocs.magento.com/swagger/ Here we can
用于客户信息更新的Magento2 CE REST API不用实际密码验证给定的密码,它接受所有内容。在web中,如果用户想要更改其帐户的电子邮件地址,Magento将询问密码并进行验证。如果我们提供了错误的密码,它将不允许我们更改密码。: application/json
Method: PUT <base_url>/rest/V1/customers
我想把用户重定向到登录页登陆,而用户没有登录。example.com ->(not logged in)-> redirect to login page.
我该怎么做呢?public function preDispatch() parent::preDispatch();
if (!Mage::getSingleton('customer/session')->authenticat