ui login: default to root@pam user and focus password field

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-12-17 11:35:13 +01:00
parent 7f816d468a
commit 3a84100428

View File

@ -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: [