summaryrefslogtreecommitdiff
path: root/static/templates/login.html
diff options
context:
space:
mode:
authormrw1593 <botahamec@outlook.com>2023-05-29 15:56:52 -0400
committermrw1593 <botahamec@outlook.com>2023-05-29 15:56:52 -0400
commitefae29e1f9f2b285fcaad14527b8ef340bca763e (patch)
treeceb478926ea6ef8f1378053a0d66b318fa1e87e9 /static/templates/login.html
parent436511846130ae5d8a058e031d9c8ad0bcb002aa (diff)
Modify login page to support authorization
Diffstat (limited to 'static/templates/login.html')
-rw-r--r--static/templates/login.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/static/templates/login.html b/static/templates/login.html
index fd3d136..5de9bc9 100644
--- a/static/templates/login.html
+++ b/static/templates/login.html
@@ -1,11 +1,11 @@
{% extends "base.html" %}
-{% block title %}Log In{% endblock title %}
+{% block title %}{{ msg(key="loginTitle") }}{% endblock title %}
{% block content %}
-<form method="post" action="{{ baseUrl() }}/authenticate">
- <label for="username">Username</label>
- <input id="username" type="text" name="username" tabindex="0" placeholder="Enter your username" autofocus autocomplete="off" />
- <label for="password">Password</label>
- <input id="password" type="password" name="password" tabindex="0" placeholder="Enter your password" autofocus autocomplete="off" />
- <input type="submit" tabindex="0" name="login" value="Log In" />
+<form method="post" action="/authorize?{{params}}">
+ <label for="username">{{ msg(key="usernameLabel") }}</label>
+ <input id="username" type="text" name="username" tabindex="0" placeholder="{{ msg(key="usernamePlaceholder") }}" autofocus />
+ <label for="password">{{ msg(key="passwordLabel") }}</label>
+ <input id="password" type="password" name="password" tabindex="0" placeholder="{{ msg(key="passwordPlaceholder") }}" />
+ <input type="submit" tabindex="0" name="login" value="{{ msg(key="loginSubmitButton") }}" />
</form>
{% endblock content %} \ No newline at end of file