diff options
author | Saptak S <saptak013@gmail.com> | 2021-11-14 23:28:17 +0530 |
---|---|---|
committer | Saptak S <saptak013@gmail.com> | 2021-11-14 23:28:17 +0530 |
commit | 6429392a405c2812a04ad4c7653d885e7595e255 (patch) | |
tree | a65fd50bdf8addc389bd2a8ce9ecd8b7532a6214 /cli/onionshare_cli/resources/static/js/chat.js | |
parent | 2a7c3d68671bf4a85d3c67f9e710e6a6228bb81a (diff) | |
download | onionshare-6429392a405c2812a04ad4c7653d885e7595e255.tar.gz onionshare-6429392a405c2812a04ad4c7653d885e7595e255.zip |
Adds username validation for socketio event handler as well
Diffstat (limited to 'cli/onionshare_cli/resources/static/js/chat.js')
-rw-r--r-- | cli/onionshare_cli/resources/static/js/chat.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/onionshare_cli/resources/static/js/chat.js b/cli/onionshare_cli/resources/static/js/chat.js index 2be55488..5f290be8 100644 --- a/cli/onionshare_cli/resources/static/js/chat.js +++ b/cli/onionshare_cli/resources/static/js/chat.js @@ -93,6 +93,8 @@ var updateUsername = function (socket) { console.log(response); if (response.success && response.username == username) { socket.emit('update_username', { username: username }); + } else { + addStatusMessage("Failed to updated username.") } }); return username; |