mirror of
https://github.com/wekan/wekan.git
synced 2026-02-24 00:44:07 +01:00
Logout with timer
This commit is contained in:
parent
8c497efb46
commit
3646a9c259
9 changed files with 83 additions and 3 deletions
|
|
@ -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('/');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue