diff options
author | Drew DeVault <sir@cmpwn.com> | 2020-05-20 13:05:05 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-05-20 19:07:47 +0200 |
commit | 9465f8db6d12a2bb8707f62ccb7d668059ec1cf1 (patch) | |
tree | 479c7dcca50c06008a85e5b95d6b36c8c713003c /themes | |
parent | ee3f66c24c3a8fba4ee1867e15f7c0814abdb100 (diff) | |
download | alps-9465f8db6d12a2bb8707f62ccb7d668059ec1cf1.tar.gz alps-9465f8db6d12a2bb8707f62ccb7d668059ec1cf1.zip |
login: set encrypted "remember me" token
Diffstat (limited to 'themes')
-rw-r--r-- | themes/alps/assets/style.css | 6 | ||||
-rw-r--r-- | themes/alps/login.html | 17 |
2 files changed, 17 insertions, 6 deletions
diff --git a/themes/alps/assets/style.css b/themes/alps/assets/style.css index 2c8ce16..5225b9d 100644 --- a/themes/alps/assets/style.css +++ b/themes/alps/assets/style.css @@ -398,6 +398,12 @@ main table tfoot { width: 100%; } +.action-group .checkbox input { + display: inline; + width: 1rem; + float: left; +} + .actions-message, .actions-contacts { display: flex; diff --git a/themes/alps/login.html b/themes/alps/login.html index e642050..6f7c372 100644 --- a/themes/alps/login.html +++ b/themes/alps/login.html @@ -6,19 +6,24 @@ <form method="post" action="/login"> <div class="action-group"> - <label for="username"> - <strong>Username</strong> - </label> + <label for="username">Username</label> <input type="text" name="username" id="username" autofocus /> </div> <div class="action-group"> - <label for="password"> - <strong>Password</strong> - </label> + <label for="password">Password</label> <input type="password" name="password" id="password" /> </div> + {{if .CanRememberMe}} + <div class="action-group"> + <label for="remember-me" class="checkbox"> + <input type="checkbox" name="remember-me" id="remember-me" /> + Remember me + </label> + </div> + {{end}} + <div class="action-group"> <button type="submit">Sign in</button> </div> |