Răsfoiți Sursa

deleted commented lines

sou 7 ani în urmă
părinte
comite
dbe2caa982
1 a modificat fișierele cu 0 adăugiri și 24 ștergeri
  1. 0 24
      lib/routes/admin.js

+ 0 - 24
lib/routes/admin.js

@@ -903,30 +903,6 @@ module.exports = function(crowi, app) {
       });
   };
 
-  // actions.api.securityPassportGoogleSetting = function(req, res) {
-  //   var form = req.form.settingForm;
-
-  //   if (!req.form.isValid) {
-  //     return res.json({status: false, message: req.form.errors.join('\n')});
-  //   }
-
-  //   debug('form content', form);
-  //   return saveSettingAsync(form)
-  //     .then(() => {
-  //       const config = crowi.getConfig();
-
-  //       // reset strategy
-  //       crowi.passportService.resetGoogleStrategy();
-  //       // setup strategy
-  //       if (Config.isEnabledPassportGoogle(config)) {
-  //         crowi.passportService.setupGoogleStrategy(true);
-  //       }
-  //       return;
-  //     })
-  //     .then(() => {
-  //       res.json({status: true});
-  //     });
-  // };
   actions.api.securityPassportGoogleSetting = async function(req, res) {
     var form = req.form.settingForm;