summaryrefslogtreecommitdiffstats
path: root/client/components/main
diff options
context:
space:
mode:
authorguillaume <guillaume.cassou@orange.fr>2018-11-06 17:48:12 +0100
committerguillaume <guillaume.cassou@orange.fr>2018-11-06 17:48:12 +0100
commit3646a9c259634bbed03b71ead53338c3f290cf0b (patch)
tree01fac0417feba0158563e818e83d71eebe92a538 /client/components/main
parent8c497efb46d2193674fee2e0c9da8053c533e79e (diff)
downloadwekan-3646a9c259634bbed03b71ead53338c3f290cf0b.tar.gz
wekan-3646a9c259634bbed03b71ead53338c3f290cf0b.tar.bz2
wekan-3646a9c259634bbed03b71ead53338c3f290cf0b.zip
Logout with timer
Diffstat (limited to 'client/components/main')
-rw-r--r--client/components/main/layouts.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/components/main/layouts.js b/client/components/main/layouts.js
index 18cc6cc4..3fda11b7 100644
--- a/client/components/main/layouts.js
+++ b/client/components/main/layouts.js
@@ -80,6 +80,7 @@ Template.userFormsLayout.events({
const user = Users.findOne();
if (user && user.authenticationMethod === 'password') {
+ logoutWithTimer(user._id);
return this.stop();
}
@@ -93,6 +94,7 @@ Template.userFormsLayout.events({
// Use the ldap connection package
Meteor.loginWithLDAP(email, password, function(error) {
if (!error) {
+ logoutWithTimer(user._id);
// Connection
return FlowRouter.go('/');
}