diff --git a/assets/js/desktop/pages/connection.js b/assets/js/desktop/pages/connection.js index a37de3459..51107f222 100644 --- a/assets/js/desktop/pages/connection.js +++ b/assets/js/desktop/pages/connection.js @@ -135,9 +135,11 @@ function updateTwoFactorVisibility() { if (useTwoFactor === 1) { divLogin.hide(); divTwoFactor.show(); + twoFactorInput.focus(); } else { divLogin.show(); divTwoFactor.hide(); + loginInput.focus(); } } diff --git a/src/Enums/UpdateType.php b/src/Enums/UpdateType.php index cb023b00a..f3dc4e88e 100644 --- a/src/Enums/UpdateType.php +++ b/src/Enums/UpdateType.php @@ -29,7 +29,7 @@ class UpdateType extends Enum const ALL = 'ALL'; const CORE = 'core'; const OTHERS = 'others'; - const PLUGINS = 'plugin'; + const PLUGIN = 'plugin'; const SCRIPT = 'script'; const WIDGET = 'widget'; }