Icq keepalive added

Not registering if user has canceled password prompt
cusax-fix
Damian Minkov 20 years ago
parent 060095db70
commit 917fff3dad

@ -189,7 +189,15 @@ public void register(SecurityAuthority authority)
credentials = authority.obtainCredentials(ProtocolNames.ICQ
, credentials);
//extract the password the user passed us.
password = new String(credentials.getPassword());
char[] pass = credentials.getPassword();
// the user didn't provide us a password (canceled the operation)
if(pass == null)
{
return;
}
password = new String(pass);
if (credentials.isPasswordPersistent())
{
@ -500,7 +508,7 @@ private void fireRegistrationStateChanged( State oldJoustSimState,
* @param reason a String further explaining the reason code or null if
* no such explanation is necessary.
*/
private void fireRegistrationStateChanged( RegistrationState oldState,
void fireRegistrationStateChanged( RegistrationState oldState,
RegistrationState newState,
int reasonCode,
String reason)

@ -104,7 +104,14 @@ public void register(final SecurityAuthority authority)
, credentials);
//extract the password the user passed us.
password = new String(credentials.getPassword());
char[] pass = credentials.getPassword();
// the user didn't provide us a password (canceled the operation)
if(pass == null)
return;
password = new String(pass);
if (credentials.isPasswordPersistent())
{

Loading…
Cancel
Save