]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: login: code-style and indentation cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 2 Jul 2021 12:15:56 +0000 (14:15 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 2 Jul 2021 12:15:56 +0000 (14:15 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/window/LoginWindow.js

index e723ba10dceacb0771e91442561635cae55affc6..60955e0599150907b4c4309821b0b46ca797f91a 100644 (file)
@@ -162,10 +162,11 @@ Ext.define('PVE.window.LoginWindow', {
            var me = this;
            var view = me.getView();
            view.el.mask(gettext('Please wait...'), 'x-mask-loading');
-           var params = { response: res };
            Proxmox.Utils.API2Request({
                url: '/api2/extjs/access/tfa',
-               params: params,
+               params: {
+                   response: res,
+               },
                method: 'POST',
                timeout: 5000, // it'll delay both success & failure
                success: function(resp, opts) {
@@ -213,7 +214,7 @@ Ext.define('PVE.window.LoginWindow', {
            },
           'button[reference=loginButton]': {
                click: 'onLogon',
-            },
+           },
            '#': {
                show: function() {
                    var me = this;