diff --git a/www/mobile/Login.js b/www/mobile/Login.js index 0abc2a140..06c8b3d4c 100644 --- a/www/mobile/Login.js +++ b/www/mobile/Login.js @@ -35,8 +35,12 @@ Ext.define('PVE.Login', { message: 'Loading...', }); Proxmox.Utils.API2Request({ - url: '/api2/extjs/access/tfa', - params: { response: code }, + url: '/api2/extjs/access/ticket', + params: { + username: ticketResponse.username, + 'tfa-challenge': ticketResponse.ticket, + password: `totp:${code}` + }, method: 'POST', timeout: 5000, // it'll delay both success & failure success: function(resp, opts) { diff --git a/www/mobile/Toolkit.js b/www/mobile/Toolkit.js index c6e4e4a00..7bde24e69 100644 --- a/www/mobile/Toolkit.js +++ b/www/mobile/Toolkit.js @@ -7,9 +7,4 @@ Ext.Ajax.setDisableCaching(false); // do not send '_dc' parameter Ext.Ajax.disableCaching = false; -Ext.MessageBox = Ext.Msg = { - alert: (title, message) => console.warn(title, message), - show: ({ title, message }) => console.warn(title, message), -}; - Ext.Loader.injectScriptElement = (url) => console.warn(`surpressed loading ${url}`);