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:
parent
7f816d468a
commit
3a84100428
@ -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: [
|
||||
|
Loading…
Reference in New Issue
Block a user