Explorar o código

deleted commented lines

sou %!s(int64=7) %!d(string=hai) anos
pai
achega
dbe2caa982
Modificáronse 1 ficheiros con 0 adicións e 24 borrados
  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;