commit:
551456ff6ef7d3591178978fbd3dc760e35d7874
added the defaultButton property to the loginwindow, but we missed that
pressing enter in the passwordfield/userfield led to a double ticket
api call.
while it did not any harm, remove it, so that we only have a single
ticket api call
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Fixes: 551456ff6ef7 ("add defaultButton to loginWindow")
specialkey: function(f, e) {
if (e.getKey() === e.ENTER) {
var pf = this.lookupReference('passwordField');
- if (pf.getValue()) {
- this.onLogon();
- } else {
+ if (!pf.getValue()) {
pf.focus(false);
}
}
}
},
- 'field[name=password]': {
- specialkey: function(f, e) {
- if (e.getKey() === e.ENTER) {
- this.onLogon();
- }
- }
- },
'field[name=realm]': {
change: function(f, value) {
var otp_field = this.lookupReference('otpField');