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()
27
27
{
28
28
$ return_url = Mage::helper ('core ' )->urlDecode ($ this ->getRequest ()->getParam ('return_url ' , "" ));
29
29
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 ());
31
31
return $ this ;
32
32
}
33
33
34
34
$ domain = Mage::getStoreConfig ('zendesk/general/domain ' );
35
35
$ token = Mage::getStoreConfig ('zendesk/sso_frontend/token ' );
36
-
36
+
37
37
if (!Zend_Validate::is ($ domain , 'NotEmpty ' )) {
38
38
Mage::log (Mage::helper ('zendesk ' )->__ ('Zendesk domain not set. Please add this to the settings page. ' ), null , 'zendesk.log ' );
39
39
$ this ->_redirect ('/ ' );
@@ -77,7 +77,7 @@ public function loginAction()
77
77
78
78
$ jwt = JWT ::encode ($ payload , $ token );
79
79
$ return_url = $ return_url ? "&return_to= " .$ return_url : "" ;
80
-
80
+
81
81
$ url = "https:// " .$ domain ."/access/jwt?jwt= " . $ jwt .$ return_url ;
82
82
83
83
Mage::log ('End-user URL: ' . $ url , null , 'zendesk.log ' );
You can’t perform that action at this time.
0 commit comments