diff options
| author | Ahmed AbdelHalim <[email protected]> | 2025-09-07 23:07:43 +0200 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2025-09-07 23:21:21 +0200 |
| commit | b3afec6c0ff240c8ad93c34e713be98d25d535eb (patch) | |
| tree | eb02fca7aaa00222680d9d8cfb02147394d9445b /templates/login.html | |
| parent | 91a4985eacc25178171d2813d88df3fdfa91e188 (diff) | |
Add HTTPS check on the go app with warning on login screen
Diffstat (limited to 'templates/login.html')
| -rw-r--r-- | templates/login.html | 7 |
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> |
