Render the login form again upon authfail.

This commit is contained in:
JC Brand 2017-02-13 15:22:56 +00:00
parent 48a3c30e75
commit d334870d00
2 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@
- Use lodash instead of underscore.js [jcbrand]
- Escape user-generated input to prevent JS-injection attacks. (Thanks to SamWhited) [jcbrand]
- Improved roster filter UX. [jcbrand]
- Render the login form again upon authfail. [jcbrand]
- #486 Honor existing mam user configuration [throwaway42]
- #749 /me will show your contact's name in the sent field [jcbrand]
- #774 Browser language (fr-fr or fr) is not detected by default [jcbrand]

View File

@ -495,6 +495,7 @@
} else if (status === Strophe.Status.AUTHFAIL) {
_converse.giveFeedback(__('Authentication Failed'), 'error');
_converse.setDisconnectionCause(status, condition, true);
_converse.onDisconnected();
} else if (status === Strophe.Status.CONNFAIL) {
_converse.giveFeedback(
__('Connection failed'), 'error',