summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2025-09-07 23:07:43 +0200
committerAhmed AbdelHalim <[email protected]>2025-09-07 23:21:21 +0200
commitb3afec6c0ff240c8ad93c34e713be98d25d535eb (patch)
treeeb02fca7aaa00222680d9d8cfb02147394d9445b /templates
parent91a4985eacc25178171d2813d88df3fdfa91e188 (diff)
Add HTTPS check on the go app with warning on login screen
Diffstat (limited to 'templates')
-rw-r--r--templates/login.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/login.html b/templates/login.html
index bd28803..3fcd987 100644
--- a/templates/login.html
+++ b/templates/login.html
@@ -16,11 +16,14 @@
<main>
<div class="login">
<div class="login__container">
- {{if .Error}}
<div id="notifications__container" class="notifications__container">
+ {{if not .IsHTTPS}}
+ <div class="message warning">Consider upgrading to HTTPS for better security.</div>
+ {{end}}
+ {{if .Error}}
<div class="message error">{{.Error}}</div>
+ {{end}}
</div>
- {{end}}
<form class="login__form" method="POST" action="/login">
<input type="password" name="password" placeholder="Password" required>