File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ public function loginAction()
2727 {
2828 $ return_url = Mage::helper ('core ' )->urlDecode ($ this ->getRequest ()->getParam ('return_url ' , "" ));
2929 if (!Mage::getStoreConfig ('zendesk/sso_frontend/enabled ' )) {
30- $ this ->_redirectUrl ($ return_url ? $ return_url : Mage::helper ('zendesk ' )->getZendeskUnauthUrl ());
30+ $ this ->_redirectUrl (Mage::helper ('zendesk ' )->getZendeskUnauthUrl ());
3131 return $ this ;
3232 }
3333
3434 $ domain = Mage::getStoreConfig ('zendesk/general/domain ' );
3535 $ token = Mage::getStoreConfig ('zendesk/sso_frontend/token ' );
36-
36+
3737 if (!Zend_Validate::is ($ domain , 'NotEmpty ' )) {
3838 Mage::log (Mage::helper ('zendesk ' )->__ ('Zendesk domain not set. Please add this to the settings page. ' ), null , 'zendesk.log ' );
3939 $ this ->_redirect ('/ ' );
@@ -77,7 +77,7 @@ public function loginAction()
7777
7878 $ jwt = JWT ::encode ($ payload , $ token );
7979 $ return_url = $ return_url ? "&return_to= " .$ return_url : "" ;
80-
80+
8181 $ url = "https:// " .$ domain ."/access/jwt?jwt= " . $ jwt .$ return_url ;
8282
8383 Mage::log ('End-user URL: ' . $ url , null , 'zendesk.log ' );
You can’t perform that action at this time.
0 commit comments