diff --git a/server/controllers/user.controller.js b/server/controllers/user.controller.js index 3cc91484..0aff0670 100644 --- a/server/controllers/user.controller.js +++ b/server/controllers/user.controller.js @@ -24,7 +24,10 @@ export function createUser(req, res, next) { if (err) { return next(err); } - res.json({success: true}); + res.json({ + email: req.user.email, + username: req.user.username + }); }); }); }); diff --git a/shared/components/Nav/Nav.jsx b/shared/components/Nav/Nav.jsx index 92e5424c..d458674a 100644 --- a/shared/components/Nav/Nav.jsx +++ b/shared/components/Nav/Nav.jsx @@ -7,7 +7,8 @@ class Nav extends React.Component { diff --git a/shared/components/SignupForm/SignupForm.jsx b/shared/components/SignupForm/SignupForm.jsx index 2caad118..8868d58d 100644 --- a/shared/components/SignupForm/SignupForm.jsx +++ b/shared/components/SignupForm/SignupForm.jsx @@ -5,19 +5,19 @@ class SignupForm extends React.Component { const {fields: { username, email, password, confirmPassword }, handleSubmit} = this.props; return (