From 73708922b49dda40b89a19dca262b87f23829788 Mon Sep 17 00:00:00 2001 From: Sigve Kvalsvik Date: Mon, 9 Oct 2017 18:13:13 +0200 Subject: [PATCH] Redirect to dashboard once done account creation, add checkbox #258 --- app/assets/locales/locale-en.json | 4 +++- .../Account/CreateAccountPassword.jsx | 23 +++++++++++-------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/app/assets/locales/locale-en.json b/app/assets/locales/locale-en.json index f2650d965b..8dc92dfc83 100644 --- a/app/assets/locales/locale-en.json +++ b/app/assets/locales/locale-en.json @@ -1127,7 +1127,9 @@ "account_exp": "This account will be created on the blockchain and will be your address for any transfers you want to make! There are no long Bitcoin-style addresses in Bitshares!", "understand_1": "I understand that noone can recover my password if I lose or forget it", "understand_2": "I have written down or oherwise stored my password", - "bts_rules": "The first rule of BitShares is: Do not lose your password.
The second rule of BitShares is: Do not lose your password.
The third rule of BitShares is: We cannot recover your password.
The fourth rule: If you can remember the password, it's not secure.
The fifth rule: Use only randomly-generated passwords.
The sixth rule: Do not tell anyone your password.
The seventh rule: Always back up your password." + "understand_3": " I understand that I will lose access to my funds if I lose my password", + "bts_rules": "The first rule of BitShares is: Do not lose your password.
The second rule of BitShares is: Do not lose your password.
The third rule of BitShares is: We cannot recover your password.
The fourth rule: If you can remember the password, it's not secure.
The fifth rule: Use only randomly-generated passwords.
The sixth rule: Do not tell anyone your password.
The seventh rule: Always back up your password.", + "ok_done": "OK, take me to the dashboard" }, "borrow": { "title": "%(asset_symbol)s Margin", diff --git a/app/components/Account/CreateAccountPassword.jsx b/app/components/Account/CreateAccountPassword.jsx index 5fe20c2cf0..e47fc8bd65 100644 --- a/app/components/Account/CreateAccountPassword.jsx +++ b/app/components/Account/CreateAccountPassword.jsx @@ -21,6 +21,10 @@ import Icon from "../Icon/Icon"; import CopyButton from "../Utility/CopyButton"; class CreateAccountPassword extends React.Component { + static contextTypes = { + router: React.PropTypes.object.isRequired + }; + constructor() { super(); this.state = { @@ -36,7 +40,8 @@ class CreateAccountPassword extends React.Component { generatedPassword: "P" + key.get_random_key().toWif(), confirm_password: "", understand_1: false, - understand_2: false + understand_2: false, + understand_3: false }; this.onFinishConfirm = this.onFinishConfirm.bind(this); @@ -196,7 +201,6 @@ class CreateAccountPassword extends React.Component { noLabel /> -
@@ -218,6 +222,13 @@ class CreateAccountPassword extends React.Component {
: null}
+
+
+ +