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 | |
parent | b441bb2b67f10ae1b83363d158a0ac1591f63e51 (diff) |
ui tweaks
-rw-r--r-- | src/server/authentication/controllers/user.ts | 9 | ||||
-rw-r--r-- | views/signup.pug | 2 | ||||
-rw-r--r-- | views/stylesheets/authentication.css | 6 |
3 files changed, 12 insertions, 5 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"); } diff --git a/views/signup.pug b/views/signup.pug index 8b5358137..9863b453e 100644 --- a/views/signup.pug +++ b/views/signup.pug @@ -8,6 +8,8 @@ block content form.form-horizontal(id='signup-form', method='POST') input(type='hidden', name='_csrf', value=_csrf) .overlay(id='overlay_signup') + a(href="/login") + img(id='to_login', src="https://bit.ly/2U6ouZk", alt="") .inner.signup h3.auth_header Create An Account .form-group diff --git a/views/stylesheets/authentication.css b/views/stylesheets/authentication.css index 4f4c02c03..30a99563e 100644 --- a/views/stylesheets/authentication.css +++ b/views/stylesheets/authentication.css @@ -9,7 +9,8 @@ label { } body { - background-color: #ccbbcc; + /* background-color: #ccbbcc; */ + background-color: #bf0000; } #logo { @@ -46,7 +47,8 @@ body { height: 300px; } -#new_user { +#new_user, +#to_login { width: 20px; height: 20px; position: absolute; |