Skip to content

Commit 6827426

Browse files
authored
Merge pull request #1522 from Hirobreak/captchakey
captcha key
2 parents 373d3dc + d61cc5f commit 6827426

File tree

3 files changed

+5
-22
lines changed

3 files changed

+5
-22
lines changed

electron_app/src/backup/exporter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const start = async () => {
6161
const [reId, domain = APP_DOMAIN] = recipientId.split('@');
6262
try {
6363
const accountObj = {
64+
recipientId: account.recipientId,
6465
email: `${reId}@${domain}`,
6566
username: reId,
6667
domain: domain,

email_login/src/components/customCheckbox.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
height: 10px;
2323
width: 10px;
2424
border-radius: 3px;
25-
border: solid 2px #fff;
25+
border: solid 2px #8a8a8a;
2626
opacity: 0.2;
2727
margin-left: 0px;
2828

@@ -34,7 +34,7 @@
3434

3535
&.checkmark-checked {
3636
background-color: #ffffff;
37-
border-color: transparent !important;
37+
border-color: transparent;
3838
opacity: 1;
3939

4040
&:after {

email_login/src/new-components/signup/SignUpCreateAccountWrapper.js

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class SignUpCreateAccountWrapper extends Component {
2828
image: undefined
2929
},
3030
termsConditions: false,
31-
promiseCall: false,
3231
enableButton: false,
3332
createAccount: false,
3433
error: undefined
@@ -98,13 +97,6 @@ class SignUpCreateAccountWrapper extends Component {
9897
)}
9998
</span>
10099
</div>
101-
<div className="checkbox-container">
102-
<CustomCheckbox
103-
value={this.state.promiseCall}
104-
onChange={this.handleCheckPromiseCall}
105-
/>
106-
<span className="checkmark-label">{create.lifeTip}</span>
107-
</div>
108100
</div>
109101
<Button
110102
text={create.button}
@@ -137,11 +129,11 @@ class SignUpCreateAccountWrapper extends Component {
137129
});
138130
return;
139131
}
140-
const { randomId, image } = result.body;
132+
const { captchaKey, image } = result.body;
141133
this.setState({
142134
captcha: {
143135
...this.state.captcha,
144-
randomId,
136+
randomId: captchaKey,
145137
image
146138
}
147139
});
@@ -237,16 +229,6 @@ class SignUpCreateAccountWrapper extends Component {
237229
);
238230
};
239231

240-
handleCheckPromiseCall = () => {
241-
const newValue = !this.state.promiseCall;
242-
this.setState(
243-
{
244-
promiseCall: newValue
245-
},
246-
this.shouldEnableButton
247-
);
248-
};
249-
250232
shouldEnableButton = () => {
251233
const shouldEnable =
252234
this.state.termsConditions &&

0 commit comments

Comments
 (0)