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) {
|
||||
console.log("in create user");
|
||||
const user = new User({
|
||||
username: req.body.username,
|
||||
email: req.body.email,
|
||||
|
|
|
@ -7,6 +7,7 @@ import SignupForm from '../../components/SignupForm/SignupForm'
|
|||
|
||||
class SignupView extends React.Component {
|
||||
render() {
|
||||
const {fields: { username, email, password, confirmPassword }, handleSubmit} = this.props;
|
||||
return (
|
||||
<SignupForm {...this.props} />
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue