diff --git a/src/js/main.js b/src/js/main.js index dc5cdf0..3568943 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -23,6 +23,7 @@ $(function() { var $inputMessage = $('.inputMessage'); // Input message input box var $key = $('#key'); var $genKey = $('#new_key'); + var $removeKey = $('#remove_key'); var $chatPage = $('.chat.page'); // The chatroom page @@ -260,6 +261,10 @@ $(function() { $key.val(key); }); + $removeKey.click(function(() { + $key.val(''); + }); + // Socket events // Whenever the server emits 'login', log the login message diff --git a/src/views/index.mustache b/src/views/index.mustache index eedc48d..8e7b7d0 100644 --- a/src/views/index.mustache +++ b/src/views/index.mustache @@ -33,7 +33,11 @@
This chat encryption key is randomly generated by every client. Clients must use the same chat key to decrypt chat messages. This key is NOT STORED nor transmitted to the server. Regardless if the room URL was shared, chat messages will appear as hash values until the same key is used between clients. You may change the key as many times as you want.