Skip to content
Permalink
Browse files
Minor Fixes
  • Loading branch information
aa7401 committed Mar 25, 2020
1 parent 689f37f commit 682afcf38ed8d0e87aa7296609070a10e81f990c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
@@ -17,7 +17,7 @@ router.get('/', async ctx => {
try {
await ctx.render('index', ctx.hbs)
} catch(err) {
await ctx.render('error', {message: err.message})
await ctx.render('error', ctx.hbs)
}
})

@@ -13,10 +13,10 @@
<header>
<h1>Home</h1>
{{#if authorised}}
<a href="/logout">log out</a>
{{else}}
<a href="/login">log in</a>
{{/if}}
<a href="/logout">log out</a>
{{else}}
<a href="/login">log in</a>
{{/if}}
</header>
{{#if msg}}
<p class="msg">{{msg}}</p>
@@ -21,15 +21,15 @@
<form action="/register" enctype="multipart/form-data" method="post">
<p>
<label for="user">Username</label><br />
<input type="text" name="user" placeholder="your preferred username (no spaces)" value="">
<input type="text" name="user" placeholder="your preferred username (no spaces)" value="{{body.user}}">
</p>
<p>
<label for="pass">Password</label><br />
<input type="password" name="pass" placeholder="your chosen password" value="">
<input type="password" name="pass" placeholder="your chosen password" value="{{body.pass}}">
</p>
<p>
<label for="email">Email</label><br />
<input type="email" name="email" placeholder="a valid email address" value="">
<input type="email" name="email" placeholder="a valid email address" value="{{body.email}}">
</p>
<p><input type="submit" value="Create"></p>
</form>

0 comments on commit 682afcf

Please sign in to comment.