]>
git.proxmox.com Git - pve-manager.git/blob - www/new/window/LoginWindow.js
1 Ext
.define('PVE.window.LoginWindow', {
2 extend
: 'Ext.window.Window',
3 requires
: ['PVE.form.RealmComboBox'],
9 var form
= me
.getComponent(0).getForm();
12 me
.el
.mask('Please wait...', 'x-mask-loading');
15 failure: function(f
, resp
){
17 Ext
.MessageBox
.alert('Failure', "Login failed. Please try again", function() {
18 var uf
= form
.findField('username');
22 success: function(f
, resp
){
25 var handler
= me
.handler
|| Ext
.emptyFn
;
26 handler
.call(me
, resp
.result
.data
);
33 initComponent: function() {
45 title
: 'Proxmox VE Login',
50 url
: '/api2/extjs/access/ticket',
65 fieldLabel
: 'User name',
67 blankText
: "Enter your user name",
72 specialkey: function(f
, e
) {
73 if (e
.getKey() === e
.ENTER
) {
74 var pf
= me
.query('textfield[name="password"]')[0];
86 inputType
: 'password',
87 fieldLabel
: 'Password',
89 blankText
:"Enter your password",
91 specialkey: function(field
, e
) {
92 if (e
.getKey() === e
.ENTER
) {
99 xtype
: 'pveRealmComboBox',