improve failed attempt reporting
This commit is contained in:
parent
0b3a04dc6c
commit
d0020344f1
|
@ -5,7 +5,7 @@ Deluge.Login = {
|
||||||
baseCls: 'x-plain',
|
baseCls: 'x-plain',
|
||||||
labelWidth: 55,
|
labelWidth: 55,
|
||||||
items: [{
|
items: [{
|
||||||
fieldLabel: 'Password',
|
fieldLabel: _('Password'),
|
||||||
id: 'password',
|
id: 'password',
|
||||||
name: 'password',
|
name: 'password',
|
||||||
inputType: 'password',
|
inputType: 'password',
|
||||||
|
@ -19,6 +19,14 @@ Deluge.Login = {
|
||||||
onSuccess: function(result) {
|
onSuccess: function(result) {
|
||||||
if (result == true) {
|
if (result == true) {
|
||||||
Deluge.Login.Window.hide();
|
Deluge.Login.Window.hide();
|
||||||
|
} else {
|
||||||
|
Ext.MessageBox.show({
|
||||||
|
title: _('Incorrect'),
|
||||||
|
msg: _('You entered an incorrect password'),
|
||||||
|
buttons: Ext.MessageBox.OK,
|
||||||
|
modal: false,
|
||||||
|
icon: Ext.MessageBox.WARNING
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -35,7 +43,7 @@ Deluge.Login.Window = new Ext.Window({
|
||||||
closable: false,
|
closable: false,
|
||||||
modal: true,
|
modal: true,
|
||||||
plain: true,
|
plain: true,
|
||||||
title: 'Login',
|
title: _('Login'),
|
||||||
items: Deluge.Login.Form,
|
items: Deluge.Login.Form,
|
||||||
buttons: [{
|
buttons: [{
|
||||||
text: 'Login',
|
text: 'Login',
|
||||||
|
|
Loading…
Reference in New Issue