diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-02-24 16:03:38 -0500 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-02-24 16:03:38 -0500 |
commit | cbbeafb8a0c53ddea92684021ead9bc08fa75d37 (patch) | |
tree | 2161631d17452868e16567bc6f67f2972f2736bf /src/server/authentication | |
parent | b441bb2b67f10ae1b83363d158a0ac1591f63e51 (diff) |
ui tweaks
Diffstat (limited to 'src/server/authentication')
-rw-r--r-- | src/server/authentication/controllers/user.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/server/authentication/controllers/user.ts b/src/server/authentication/controllers/user.ts index 554781409..5ff44bda1 100644 --- a/src/server/authentication/controllers/user.ts +++ b/src/server/authentication/controllers/user.ts @@ -29,7 +29,8 @@ export let getSignup = (req: Request, res: Response) => { return res.redirect("/home"); } res.render("signup.pug", { - title: "Sign Up" + title: "Sign Up", + errors: req.flash("Unable to facilitate sign up. Please try again.") }); }; @@ -48,8 +49,10 @@ export let postSignup = (req: Request, res: Response, next: NextFunction) => { const errors = req.validationErrors(); if (errors) { - req.flash("errors", "Unable to facilitate sign up. Please try again."); - console.log(errors.toString()); + res.render("signup.pug", { + title: "Sign Up", + errors: req.flash("Unable to facilitate sign up. Please try again.") + }); return res.redirect("/signup"); } |