File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ public function getApiToken($generate = true)
147147 public function setApiToken ($ token = null )
148148 {
149149 if (!$ token ) {
150- $ token = hash ('sha256 ' , rand ());
150+ $ token = hash ('sha256 ' , Mage:: helper ( ' oauth ' )-> generateToken ());
151151 }
152152 Mage::getModel ('core/config ' )->saveConfig ('zendesk/api/token ' , $ token , 'default ' );
153153
@@ -185,7 +185,7 @@ public function getProvisionToken($generate = false)
185185 public function setProvisionToken ($ token = null )
186186 {
187187 if (!$ token ) {
188- $ token = hash ('sha256 ' , rand ());
188+ $ token = hash ('sha256 ' , Mage:: helper ( ' oauth ' )-> generateToken ());
189189 }
190190
191191 Mage::getModel ('core/config ' )->saveConfig ('zendesk/hidden/provision_token ' , $ token , 'default ' );
You can’t perform that action at this time.
0 commit comments