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,
|
autoShow: true,
|
||||||
modal: 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: {
|
layout: {
|
||||||
type: 'auto'
|
type: 'auto'
|
||||||
@ -103,6 +106,7 @@ Ext.define('PBS.LoginView', {
|
|||||||
xtype: 'textfield',
|
xtype: 'textfield',
|
||||||
fieldLabel: gettext('User name'),
|
fieldLabel: gettext('User name'),
|
||||||
name: 'username',
|
name: 'username',
|
||||||
|
value: 'root@pam',
|
||||||
itemId: 'usernameField',
|
itemId: 'usernameField',
|
||||||
reference: 'usernameField'
|
reference: 'usernameField'
|
||||||
},
|
},
|
||||||
@ -111,7 +115,8 @@ Ext.define('PBS.LoginView', {
|
|||||||
inputType: 'password',
|
inputType: 'password',
|
||||||
fieldLabel: gettext('Password'),
|
fieldLabel: gettext('Password'),
|
||||||
name: 'password',
|
name: 'password',
|
||||||
reference: 'passwordField'
|
itemId: 'passwordField',
|
||||||
|
reference: 'passwordField',
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
buttons: [
|
buttons: [
|
||||||
|
Loading…
Reference in New Issue
Block a user