mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-19 04:56:58 +01:00
merge with branch issue-183
This commit is contained in:
@@ -86,7 +86,9 @@ if (Sonia.login.Form){
|
||||
cancelText: 'Abbrechen',
|
||||
waitTitleText: 'Verbinden',
|
||||
WaitMsgText: 'Übertrage Daten...',
|
||||
failedMsgText: 'Anmeldung fehlgeschlagen!'
|
||||
failedMsgText: 'Anmeldung fehlgeschlagen!',
|
||||
failedDescriptionText: 'Falscher Benutzername, Passwort oder sie haben nicht\n\
|
||||
genug Berechtigungen. Bitte versuchen sie es erneut.'
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ Sonia.login.Form = Ext.extend(Ext.FormPanel,{
|
||||
waitTitleText: 'Connecting',
|
||||
WaitMsgText: 'Sending data...',
|
||||
failedMsgText: 'Login failed!',
|
||||
failedDescriptionText: 'Incorrect username, password or not enough permission. Please Try again.',
|
||||
|
||||
initComponent: function(){
|
||||
|
||||
@@ -88,7 +89,7 @@ Sonia.login.Form = Ext.extend(Ext.FormPanel,{
|
||||
}]
|
||||
};
|
||||
|
||||
this.addEvents('cancel');
|
||||
this.addEvents('cancel', 'failure');
|
||||
|
||||
Ext.apply(this, Ext.apply(this.initialConfig, config));
|
||||
Sonia.login.Form.superclass.initComponent.apply(this, arguments);
|
||||
@@ -118,7 +119,13 @@ Sonia.login.Form = Ext.extend(Ext.FormPanel,{
|
||||
if ( debug ){
|
||||
console.debug( 'login failed' );
|
||||
}
|
||||
Ext.Msg.alert(this.failedMsgText);
|
||||
this.fireEvent('failure');
|
||||
Ext.Msg.show({
|
||||
title: this.failedMsgText,
|
||||
msg: this.failedDescriptionText,
|
||||
buttons: Ext.Msg.OK,
|
||||
icon: Ext.MessageBox.WARNING
|
||||
});
|
||||
form.reset();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user