|
@@ -102,6 +102,11 @@ module.exports = function(crowi, app, req, locals) {
|
|
|
return locals.isEnabledPassport() && config.crowi['security:passport-github:isEnabled'];
|
|
return locals.isEnabledPassport() && config.crowi['security:passport-github:isEnabled'];
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ locals.passportTwitterLoginEnabled = function() {
|
|
|
|
|
+ var config = crowi.getConfig();
|
|
|
|
|
+ return locals.isEnabledPassport() && config.crowi['security:passport-twitter:isEnabled'];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
locals.searchConfigured = function() {
|
|
locals.searchConfigured = function() {
|
|
|
if (crowi.getSearcher()) {
|
|
if (crowi.getSearcher()) {
|
|
|
return true;
|
|
return true;
|