mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Added auto logout option
This commit is contained in:
parent
76f319a07f
commit
bb551e4ec8
18 changed files with 171 additions and 33 deletions
|
|
@ -15,7 +15,6 @@
|
|||
AccountStore = require('Stores/User/Account'),
|
||||
|
||||
Settings = require('Storage/Settings'),
|
||||
Remote = require('Storage/User/Remote'),
|
||||
|
||||
AbstractView = require('Knoin/AbstractView')
|
||||
;
|
||||
|
|
@ -80,10 +79,7 @@
|
|||
|
||||
AbstractSystemDropDownUserView.prototype.logoutClick = function ()
|
||||
{
|
||||
Remote.logout(function () {
|
||||
require('App/User').loginAndLogoutReload(true,
|
||||
Settings.settingsGet('ParentEmail') && 0 < Settings.settingsGet('ParentEmail').length);
|
||||
});
|
||||
require('App/User').logout();
|
||||
};
|
||||
|
||||
AbstractSystemDropDownUserView.prototype.onBuild = function ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue