diff --git a/client/src/App.vue b/client/src/App.vue index 7cf7798..2c3b6e7 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -30,6 +30,7 @@ export default { //Puts token into state on page load let token = localStorage.getItem('loginToken') let username = localStorage.getItem('username') + let masterKey = localStorage.getItem('masterKey') // const socket = io({ path:'/socket' }); const socket = this.$io @@ -50,7 +51,7 @@ export default { //Put user data into global store on load if(token){ - this.$store.commit('setLoginToken', {token, username}) + this.$store.commit('setLoginToken', {token, username, masterKey}) } }, diff --git a/client/src/components/NoteInputPanel.vue b/client/src/components/NoteInputPanel.vue index 17aecfe..6f61905 100644 --- a/client/src/components/NoteInputPanel.vue +++ b/client/src/components/NoteInputPanel.vue @@ -86,17 +86,6 @@
- -Note Decrypted
-Password protection will prevent anyone from reading the text of this note, unless they enter the correct password.
-Only the note text is protected. Title, tags, and files are not encrypted and remain visible without a password.
-The password you select will only be used for this note. You can use the same password on multiple notes. The note will be encrypted using the password entered. A longer password will be more secure.
-