Try to fix [LDAP Login: "Login forbidden", ReferenceError: req is not defined](https://github.com/wekan/wekan-ldap/issues/44).

Please test.

Thanks to xet7 !

Closes wekan/wekan-ldap#44
This commit is contained in:
Lauri Ojansivu 2019-03-14 00:25:40 +02:00
parent 8671f08a0e
commit 32f6de1eec
2 changed files with 15 additions and 5 deletions

10
server/header-login.js Normal file
View file

@ -0,0 +1,10 @@
Meteor.startup(() => {
if ( process.env.HEADER_LOGIN_ID ) {
Meteor.settings.public.headerLoginId = process.env.HEADER_LOGIN_ID;
Meteor.settings.public.headerLoginEmail = process.env.HEADER_LOGIN_EMAIL;
Meteor.settings.public.headerLoginFirstname = process.env.HEADER_LOGIN_FIRSTNAME;
Meteor.settings.public.headerLoginLastname = process.env.HEADER_LOGIN_LASTNAME;
}
});