Просмотр исходного кода

#5529 Protect confidential information: API keys

Aleksandr Trofimov 2 месяцев назад
Родитель
Сommit
4cfd3a8cc0

+ 5 - 0
modules/boonex/oauth2/classes/BxOAuthGrid.php

@@ -33,6 +33,11 @@ class BxOAuthGrid extends BxTemplGrid
         return isAdmin();
     }
 
+    protected function _getCellClientSecret($mixedValue, $sKey, $aField, $aRow)
+    {
+        return $this->_getCellSecret($mixedValue, $sKey, $aField, $aRow);
+    }
+
     /**
      * 'add' action handler
      */

+ 5 - 0
studio/classes/BxDolStudioApiKeys.php

@@ -14,6 +14,11 @@ class BxDolStudioApiKeys extends BxTemplStudioGrid
         parent::__construct ($aOptions, $oTemplate);
     }
 
+    protected function _getCellKey($mixedValue, $sKey, $aField, $aRow)
+    {
+        return $this->_getCellSecret($mixedValue, $sKey, $aField, $aRow);
+    }
+
     public function _performActionAdd($aForm, $aCustomValues = []) 
     {
         $oForm = new BxTemplFormView($aForm);