summaryrefslogtreecommitdiffstats
path: root/models/settings.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-12-05 08:20:59 +0200
committerLauri Ojansivu <x@xet7.org>2018-12-05 08:20:59 +0200
commite3a40aca6f09ced580df26f438855107752650dd (patch)
treededb9575bfb2e8d19b95643b39ca3ba2489e14ed /models/settings.js
parent0611e0c4bd13cb7d93e52abfeaf48f2c79a1ee15 (diff)
downloadwekan-e3a40aca6f09ced580df26f438855107752650dd.tar.gz
wekan-e3a40aca6f09ced580df26f438855107752650dd.tar.bz2
wekan-e3a40aca6f09ced580df26f438855107752650dd.zip
This release fixes the following bugs:
- Partially #2045 revert [Improve authentication](https://github.com/wekan/wekan/issues/2016), adding back password/LDAP dropdown, because login did now work. NOTE: This was added in v1.71, reverted at v1.73 because login did not work, added back at v1.79, and then reverted partially at v1.82 because login did not work. Related LDAP logout timer does not work yet. Thanks to xet7 !
Diffstat (limited to 'models/settings.js')
-rw-r--r--models/settings.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/models/settings.js b/models/settings.js
index 9ca26c48..52212809 100644
--- a/models/settings.js
+++ b/models/settings.js
@@ -239,35 +239,5 @@ if (Meteor.isServer) {
cas: isCasEnabled(),
};
},
-
- getDefaultAuthenticationMethod() {
- return process.env.DEFAULT_AUTHENTICATION_METHOD;
- },
-
- // TODO: patch error : did not check all arguments during call
- logoutWithTimer(userId) {
- if (process.env.LOGOUT_WITH_TIMER) {
- Jobs.run('logOut', userId, {
- in: {
- days: process.env.LOGOUT_IN,
- },
- on: {
- hour: process.env.LOGOUT_ON_HOURS,
- minute: process.env.LOGOUT_ON_MINUTES,
- },
- priority: 1,
- });
- }
- },
- });
-
- Jobs.register({
- logOut(userId) {
- Meteor.users.update(
- {_id: userId},
- {$set: {'services.resume.loginTokens': []}}
- );
- this.success();
- },
});
}