Skip to content

Commit b0128b1

Browse files
committed
Merge branch 'new-master'
2 parents 6cffb2e + c755d7a commit b0128b1

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"react-router-bootstrap": "^0.24.4",
1111
"react-router-dom": "^4.2.2",
1212
"react-scripts": "1.1.1",
13-
"react-stripe-elements": "^1.6.0",
14-
"uuid": "^3.2.1"
13+
"react-stripe-elements": "^1.6.0"
1514
},
1615
"scripts": {
1716
"start": "react-scripts start",

src/config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const dev = {
1010
},
1111
cognito: {
1212
REGION: "us-east-1",
13-
USER_POOL_ID: "us-east-1_riBVwCuuL",
14-
APP_CLIENT_ID: "481f4tml24658792d685ib9l05",
13+
USER_POOL_ID: "us-east-1_yKOQs2dWK",
14+
APP_CLIENT_ID: "1h0r8s763vnqj4id6dvguanp8f",
1515
IDENTITY_POOL_ID: "us-east-1:dedfd34a-9d7e-4bf2-a1dd-ef603bac2ecb"
1616
}
1717
};
@@ -28,8 +28,8 @@ const prod = {
2828
},
2929
cognito: {
3030
REGION: "us-east-1",
31-
USER_POOL_ID: "us-east-1_Ko7Jw6kaT",
32-
APP_CLIENT_ID: "4uhibottdv2qs37vd9t4vod4cl",
31+
USER_POOL_ID: "us-east-1_TwYpMXIJH",
32+
APP_CLIENT_ID: "6kfg0o7qo2i3ndk2ur906sc5fd",
3333
IDENTITY_POOL_ID: "us-east-1:f4c754b4-24f0-4754-8596-30afedece1fc"
3434
}
3535
};

src/containers/Signup.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { Component } from "react";
2-
import uuidv4 from "uuid/v4";
32
import {
43
HelpBlock,
54
FormGroup,
@@ -49,11 +48,8 @@ export default class Signup extends Component {
4948

5049
try {
5150
const newUser = await Auth.signUp({
52-
username: uuidv4(),
53-
password: this.state.password,
54-
attributes: {
55-
email: this.state.email
56-
}
51+
username: this.state.email,
52+
password: this.state.password
5753
});
5854
this.setState({
5955
newUser
@@ -71,7 +67,7 @@ export default class Signup extends Component {
7167
this.setState({ isLoading: true });
7268

7369
try {
74-
await Auth.confirmSignUp(this.state.newUser.user.username, this.state.confirmationCode);
70+
await Auth.confirmSignUp(this.state.email, this.state.confirmationCode);
7571
await Auth.signIn(this.state.email, this.state.password);
7672

7773
this.props.userHasAuthenticated(true);

0 commit comments

Comments
 (0)