|
@@ -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) {
|
|
actions.api.securityPassportGoogleSetting = async function(req, res) {
|
|
|
var form = req.form.settingForm;
|
|
var form = req.form.settingForm;
|
|
|
|
|
|