From 85298012e46402972348fbfdf7e755c3ead34fca Mon Sep 17 00:00:00 2001 From: Mikunj Date: Tue, 4 Dec 2018 12:20:17 +1100 Subject: [PATCH] Added generation of seed in registration. --- _locales/en/messages.json | 5 ++++ background.html | 11 ++++++-- js/views/standalone_registration_view.js | 35 +++++++++++++++++++----- libtextsecure/account_manager.js | 7 ++++- stylesheets/_global.scss | 11 ++++++-- 5 files changed, 56 insertions(+), 13 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 15c65f464..f079b38d0 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1669,5 +1669,10 @@ "editDisplayName": { "message": "Edit display name", "description": "Button action that the user can click to edit their display name" + }, + + "copiedMnemonic": { + "message": "Copied mnemonic to clipboard", + "description": "A toast message telling the user that the mnemonic was copied" } } diff --git a/background.html b/background.html index 9c9331478..15d645a49 100644 --- a/background.html +++ b/background.html @@ -603,7 +603,7 @@
Create your Loki Messenger Account
- +

Register using Mnenomic

@@ -611,13 +611,18 @@
- Register using mnenomic + Register

Register

- Register +
diff --git a/js/views/standalone_registration_view.js b/js/views/standalone_registration_view.js index 1e6257a1b..44a98181d 100644 --- a/js/views/standalone_registration_view.js +++ b/js/views/standalone_registration_view.js @@ -1,4 +1,4 @@ -/* global Whisper, $, getAccountManager, textsecure, storage, ConversationController */ +/* global Whisper, $, getAccountManager, textsecure, i18n, storage, ConversationController */ /* eslint-disable more/no-then */ @@ -27,6 +27,8 @@ this.$('.standalone-mnemonic').hide(); + this.onGenerateMnemonic(); + window.mnemonic.get_languages().forEach(language => { this.$('#mnemonic-language').append( $('