add sign up server side, still working on client side
This commit is contained in:
parent
341158579f
commit
22964f7a1c
2 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,6 @@ export function newUser(req, res) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createUser(req, res, next) {
|
export function createUser(req, res, next) {
|
||||||
console.log("in create user");
|
|
||||||
const user = new User({
|
const user = new User({
|
||||||
username: req.body.username,
|
username: req.body.username,
|
||||||
email: req.body.email,
|
email: req.body.email,
|
||||||
|
|
|
@ -7,6 +7,7 @@ import SignupForm from '../../components/SignupForm/SignupForm'
|
||||||
|
|
||||||
class SignupView extends React.Component {
|
class SignupView extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
|
const {fields: { username, email, password, confirmPassword }, handleSubmit} = this.props;
|
||||||
return (
|
return (
|
||||||
<SignupForm {...this.props} />
|
<SignupForm {...this.props} />
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue