2fa required logout
This commit is contained in:
@@ -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: '<div class="complex-text">{{complexText viewObject.messageText}}</div>' +
|
||||
'<div class="button-container" style="margin-top: 30px">' +
|
||||
'<button class="btn btn-default" data-action="proceed">{{translate \'Proceed\'}}</button></div>',
|
||||
'<div class="button-container btn-group" style="margin-top: 30px">' +
|
||||
'<button class="btn btn-primary" data-action="proceed">{{translate \'Proceed\'}}</button>' +
|
||||
'<button class="btn btn-default" data-action="logout">{{translate \'Log Out\'}}</button></div>'
|
||||
,
|
||||
|
||||
setup: function () {
|
||||
this.buttonList = [];
|
||||
@@ -65,5 +68,9 @@ define('views/modals/auth2fa-required', 'views/modal', function (Dep) {
|
||||
}, this);
|
||||
},
|
||||
|
||||
actionLogout: function () {
|
||||
this.getRouter().logout();
|
||||
},
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user