From f63cc22f44d6069e8df7cdf6bbb97d31b5b08672 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 27 Feb 2020 16:28:48 +0200 Subject: [PATCH] 2fa required logout --- client/src/views/modals/auth2fa-required.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/client/src/views/modals/auth2fa-required.js b/client/src/views/modals/auth2fa-required.js index c4eac158c0..e19363367a 100644 --- a/client/src/views/modals/auth2fa-required.js +++ b/client/src/views/modals/auth2fa-required.js @@ -38,11 +38,14 @@ define('views/modals/auth2fa-required', 'views/modal', function (Dep) { events: { 'click [data-action="proceed"]': 'actionProceed', + 'click [data-action="logout"]': 'actionLogout', }, templateContent: '
{{complexText viewObject.messageText}}
' + - '
' + - '
', + '
' + + '' + + '
' + , setup: function () { this.buttonList = []; @@ -65,5 +68,9 @@ define('views/modals/auth2fa-required', 'views/modal', function (Dep) { }, this); }, + actionLogout: function () { + this.getRouter().logout(); + }, + }); });