diff options
author | Marvin Borner | 2019-04-10 17:03:15 +0200 |
---|---|---|
committer | Marvin Borner | 2019-04-10 17:03:15 +0200 |
commit | a177d54b4bde907ca5b155a5fb1541402e494218 (patch) | |
tree | 17c7404718a77792cd7a5cc87856e4fc414bc4e7 /src/main/resources | |
parent | c88b980118b6bc99d631e35c332596848da4ff37 (diff) |
Added permanent login via cookies
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/views/login.rocker.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/resources/views/login.rocker.html b/src/main/resources/views/login.rocker.html new file mode 100644 index 0000000..389d82b --- /dev/null +++ b/src/main/resources/views/login.rocker.html @@ -0,0 +1,20 @@ +@args (String message) + +@layout.template("Login", RockerContent.NONE, RockerContent.NONE) -> { +<form action="login" method="post"> + <div> + <label for="username">Username:</label> + <input id="username" name="username" type="text"/> + </div> + <div> + <label for="password">Password:</label> + <input id="password" name="password" type="password"/> + </div> + + <button type="submit">Login</button> + + @if(message.length() > 0) { + <small>@message</small> + } +</form> +} |