converse-core: Attempt to log in again when reconnecting
and when auto_login is not `true`. Will only work if the page wasn't reloaded, because then the password will still be on the connection.
This commit is contained in:
parent
ec91175a70
commit
3b3720c32d
|
@ -466,8 +466,9 @@
|
|||
converse.giveFeedback(__('Authentication failed.'), 'error');
|
||||
converse.connection.disconnect(__('Authentication Failed'));
|
||||
converse.disconnection_cause = Strophe.Status.AUTHFAIL;
|
||||
} else if (status === Strophe.Status.CONNFAIL ||
|
||||
status === Strophe.Status.DISCONNECTING) {
|
||||
} else if (status === Strophe.Status.CONNFAIL) {
|
||||
converse.setDisconnectionCause(status);
|
||||
} else if (status === Strophe.Status.DISCONNECTING) {
|
||||
converse.setDisconnectionCause(status);
|
||||
}
|
||||
};
|
||||
|
@ -1863,6 +1864,8 @@
|
|||
// Probably ANONYMOUS login
|
||||
this.autoLogin();
|
||||
}
|
||||
} else if (reconnecting) {
|
||||
this.autoLogin();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user