|
|
@@ -100,13 +100,6 @@ module.exports = function(crowi, app, req, locals) {
|
|
|
return cdnResourcesService.getHighlightJsStyleTag(styleName);
|
|
|
};
|
|
|
|
|
|
- /**
|
|
|
- * return true if enabled
|
|
|
- */
|
|
|
- locals.isEnabledPassport = function() {
|
|
|
- return configManager.getConfig('crowi', 'security:isEnabledPassport');
|
|
|
- };
|
|
|
-
|
|
|
/**
|
|
|
* return true if local strategy has been setup successfully
|
|
|
* used whether restarting the server needed
|
|
|
@@ -177,10 +170,6 @@ module.exports = function(crowi, app, req, locals) {
|
|
|
return locals.isEnabledPassport() && configManager.getConfig('crowi', 'security:passport-twitter:isEnabled');
|
|
|
};
|
|
|
|
|
|
- locals.passportOidcLoginEnabled = function() {
|
|
|
- return locals.isEnabledPassport() && configManager.getConfig('crowi', 'security:passport-oidc:isEnabled');
|
|
|
- };
|
|
|
-
|
|
|
locals.searchConfigured = function() {
|
|
|
if (crowi.getSearcher()) {
|
|
|
return true;
|