Seed Support #56
1 changed files with 3 additions and 3 deletions
|
@ -61,7 +61,6 @@ const ConfirmEmailStage = React.createClass({
|
||||||
return {
|
return {
|
||||||
rewardType: null,
|
rewardType: null,
|
||||||
code: '',
|
code: '',
|
||||||
email: '',
|
|
||||||
submitting: false,
|
submitting: false,
|
||||||
errorMessage: null,
|
errorMessage: null,
|
||||||
};
|
};
|
||||||
|
@ -84,7 +83,7 @@ const ConfirmEmailStage = React.createClass({
|
||||||
this.setState({ submitting: false });
|
this.setState({ submitting: false });
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
|
|
||||||
lbryio.call('user_email', 'confirm', {verification_token: this.state.code, email: this.state.email}, 'post').then((userEmail) => {
|
lbryio.call('user_email', 'confirm', {verification_token: this.state.code, email: this.props.email}, 'post').then((userEmail) => {
|
||||||
if (userEmail.IsVerified) {
|
if (userEmail.IsVerified) {
|
||||||
this.props.onEmailConfirmed();
|
this.props.onEmailConfirmed();
|
||||||
} else {
|
} else {
|
||||||
|
@ -206,7 +205,8 @@ export const AuthOverlay = React.createClass({
|
||||||
this.setState({
|
this.setState({
|
||||||
stage: "confirm",
|
stage: "confirm",
|
||||||
stageProps: {
|
stageProps: {
|
||||||
onEmailConfirmed: function() { this.setState({ stage: "welcome", email: email }) }.bind(this)
|
email: email,
|
||||||
|
onEmailConfirmed: function() { this.setState({ stage: "welcome"}) }.bind(this)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
|
|
Loading…
Reference in a new issue