|
|
@@ -956,13 +956,13 @@ module.exports = function(crowi, app) {
|
|
|
// reset strategy
|
|
|
await crowi.passportService.resetGitHubStrategy();
|
|
|
// setup strategy
|
|
|
- if (Config.isEnabledPassportGithub(config)) {
|
|
|
+ if (Config.isEnabledPassportGitHub(config)) {
|
|
|
try {
|
|
|
await crowi.passportService.setupGitHubStrategy(true);
|
|
|
}
|
|
|
catch (err) {
|
|
|
// reset
|
|
|
- await crowi.passportService.resetGithubStrategy();
|
|
|
+ await crowi.passportService.resetGitHubStrategy();
|
|
|
return res.json({status: false, message: err.message});
|
|
|
}
|
|
|
}
|