aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/login.handlebars5
-rw-r--r--views/register.handlebars3
2 files changed, 7 insertions, 1 deletions
diff --git a/views/login.handlebars b/views/login.handlebars
index 47e2166..fd87ba7 100644
--- a/views/login.handlebars
+++ b/views/login.handlebars
@@ -1,5 +1,8 @@
<div class="container">
<h1 class="mt-2">{{ title }}</h1>
+ {{#if msg}}
+ <div class="alert alert-success" role="alert">{{msg}}</div>
+ {{/if}}
<form action="/login" method="post" accept-charset="utf-8">
<div class="mb-3">
<label for="email" class="form-label">Email:</label>
@@ -7,7 +10,7 @@
</div>
<div class="mb-3">
<label for="password" class="form-label">Password:</label>
- <input name="password" class="form-control" id="password" required></input>
+ <input name="password" type="password" class="form-control" id="password" required></input>
</div>
<button type="submit" class="btn">Login</button>
</form>
diff --git a/views/register.handlebars b/views/register.handlebars
index d18a6b8..a2c9f4d 100644
--- a/views/register.handlebars
+++ b/views/register.handlebars
@@ -1,5 +1,8 @@
<div class="container">
<h1 class="mt-2">{{ title }}</h1>
+ {{#if msg}}
+ <div class="alert alert-warning" role="alert">{{msg}}</div>
+ {{/if}}
<form action="/register" method="post" accept-charset="utf-8">
<div class="mb-3">
<label for="firstname" class="form-label">First name:</label>