From 3646a9c259634bbed03b71ead53338c3f290cf0b Mon Sep 17 00:00:00 2001 From: guillaume Date: Tue, 6 Nov 2018 17:48:12 +0100 Subject: Logout with timer --- client/components/main/layouts.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/components/main/layouts.js') 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('/'); } -- cgit v1.2.3-1-g7c22