欧美free性护士vide0shd,老熟女,一区二区三区,久久久久夜夜夜精品国产,久久久久久综合网天天,欧美成人护士h版

目錄

magento如何加密連接

Magento后臺配置設置的時候有時候需要加密保存,如一些關鍵的賬號密碼就不應該明文保存到數據庫和顯示在前臺。

那么你知道m(xù)agento如何加密連接嗎?<appsecret translate="label"> <label>appsecret</label>  <frontendtype>password</frontendtype>  <backendmodel>adminhtml/systemconfigbackendencrypted</backendmodel>  <sortorder>2</sortorder>  <showindefault>1</showindefault>   <showinwebsite>1</showinwebsite>   <showinstore>0</showinstore> </appsecret>  獲取值得代碼 $appSecret = Mage::getStoreConfig('facebooklogin/setting/appsecret', $storeId);直接拿getStoreConfig 獲取到的值是經過加密的,還需要解密才能用。

解密代碼$appSecret = Mage::helper('core')->decrypt($appSecret);配置文件中設置<frontendtype>password</frontendtype,前臺可以看到字符。

frontend-type-password 不顯示配置文件中設置<frontendtype>obscure</frontendtype>即可。

本文內容根據網絡資料整理,出于傳遞更多信息之目的,不代表金鑰匙跨境贊同其觀點和立場。

轉載請注明,如有侵權,聯(lián)系刪除。

本文鏈接:http://m.gantiao.com.cn/post/2025246105.html

發(fā)布評論

您暫未設置收款碼

請在主題配置——文章設置里上傳

掃描二維碼手機訪問

文章目錄