|
|
@@ -1,4 +1,3 @@
|
|
|
-/* eslint-disable no-eval */
|
|
|
const debug = require('debug')('growi:service:PassportService');
|
|
|
const urljoin = require('url-join');
|
|
|
const passport = require('passport');
|
|
|
@@ -111,13 +110,14 @@ class PassportService {
|
|
|
setupStrategyByAuth(auth) {
|
|
|
|
|
|
try {
|
|
|
- eval(`this.reset${auth}Strategy()`);
|
|
|
- eval(`this.setup${auth}Strategy()`);
|
|
|
+ this[`reset${auth}Strategy`]();
|
|
|
+ this[`setup${auth}Strategy`]();
|
|
|
}
|
|
|
catch (err) {
|
|
|
debug(err);
|
|
|
- eval(`this.reset${auth}Strategy()`);
|
|
|
+ this[`reset${auth}Strategy`]();
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|