diff options
Diffstat (limited to 'src/server/authentication/controllers/user.ts')
-rw-r--r-- | src/server/authentication/controllers/user.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/authentication/controllers/user.ts b/src/server/authentication/controllers/user.ts index f74ff9039..03ebbe0d4 100644 --- a/src/server/authentication/controllers/user.ts +++ b/src/server/authentication/controllers/user.ts @@ -35,6 +35,7 @@ export let postSignup = (req: Request, res: Response, next: NextFunction) => { if (errors) { req.flash("errors", "Unable to facilitate sign up. Please try again."); + console.log(errors.toString()); return res.redirect("/signup"); } @@ -46,6 +47,7 @@ export let postSignup = (req: Request, res: Response, next: NextFunction) => { User.findOne({ email: req.body.email }, (err, existingUser) => { if (err) { return next(err); } if (existingUser) { + console.log("GAAAAHHHHHHH!"); req.flash("errors", "Account with that email address already exists."); return res.redirect("/signup"); } @@ -55,6 +57,7 @@ export let postSignup = (req: Request, res: Response, next: NextFunction) => { if (err) { return next(err); } + console.log("WE IN!"); res.redirect("/"); }); }); |