From 3a8410042812a387246423cfa513597e78baa8f1 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 17 Dec 2019 11:35:13 +0100 Subject: [PATCH] ui login: default to root@pam user and focus password field Signed-off-by: Thomas Lamprecht --- www/LoginView.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/www/LoginView.js b/www/LoginView.js index bee3d514..b00d169a 100644 --- a/www/LoginView.js +++ b/www/LoginView.js @@ -75,7 +75,10 @@ Ext.define('PBS.LoginView', { autoShow: true, modal: true, - defaultFocus: 'usernameField', + //defaultFocus: 'usernameField', + // TODO: use usernameField again once we have a real user-, + // permission system and root@pam isn't the default anymore + defaultFocus: 'passwordField', layout: { type: 'auto' @@ -103,6 +106,7 @@ Ext.define('PBS.LoginView', { xtype: 'textfield', fieldLabel: gettext('User name'), name: 'username', + value: 'root@pam', itemId: 'usernameField', reference: 'usernameField' }, @@ -111,7 +115,8 @@ Ext.define('PBS.LoginView', { inputType: 'password', fieldLabel: gettext('Password'), name: 'password', - reference: 'passwordField' + itemId: 'passwordField', + reference: 'passwordField', } ], buttons: [