diff --git a/UI/Templates/MainUI/SOGoRootPage.wox b/UI/Templates/MainUI/SOGoRootPage.wox
index 6c14e7216..6539eddbd 100644
--- a/UI/Templates/MainUI/SOGoRootPage.wox
+++ b/UI/Templates/MainUI/SOGoRootPage.wox
@@ -134,7 +134,11 @@
lock
-
+
diff --git a/UI/WebServerResources/js/Main/Main.app.js b/UI/WebServerResources/js/Main/Main.app.js
index 8580e1635..80da04bf6 100644
--- a/UI/WebServerResources/js/Main/Main.app.js
+++ b/UI/WebServerResources/js/Main/Main.app.js
@@ -9,8 +9,8 @@
/**
* @ngInject
*/
- LoginController.$inject = ['$scope', '$window', '$timeout', 'Dialog', '$mdDialog', 'Authentication'];
- function LoginController($scope, $window, $timeout, Dialog, $mdDialog, Authentication) {
+ LoginController.$inject = ['$scope', '$window', '$timeout', 'Dialog', '$mdDialog', 'Authentication', 'sgFocus'];
+ function LoginController($scope, $window, $timeout, Dialog, $mdDialog, Authentication, focus) {
var vm = this;
this.$onInit = function() {
@@ -43,6 +43,7 @@
if (data.totpmissingkey) {
vm.loginState = 'totpcode';
+ focus('totpcode');
}
else if (data.totpdisabled) {
vm.loginState = 'totpdisabled';