hydra-werther/internal/web/templates/login.tmpl

44 lines
1.3 KiB
Cheetah
Raw Normal View History

<!DOCTYPE html>
<html lang="{{ (index .LangPrefs 0).Lang }}">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Login Provider Werther</title>
<base href="{{ .WebBasePath }}">
<link rel="stylesheet" href="static/style.css">
</head>
<body>
<div class="login-page">
<div class="form">
<p class="message">
{{ if .Data.IsInvalidCredentials }}
Invalid username or password
{{ else if .Data.IsInternalError }}
Internal server error
{{ else }}
&nbsp;
{{ end }}
</p>
<form class="login-form" action="{{ .Data.LoginURL }}" method="POST">
<input type="hidden" name="csrf_token" value="{{ .Data.CSRFToken }}">
<input type="hidden" name="login_challenge" value="{{ .Data.Challenge }}">
2019-02-18 14:57:54 +01:00
<input type="text" placeholder="username" name="username"/>
<input type="password" placeholder="password" name="password"/>
2019-02-18 14:57:54 +01:00
<div class="checkbox remember-container">
<div class="checkbox-overlay">
<input type="checkbox" name="remember" />
<div class="checkbox-container">
<div class="checkbox-checkmark"></div>
</div>
<label for="remember">Remember me</label>
2019-02-18 14:57:54 +01:00
</div>
</div>
<button type="submit">login</button>
</form>
</div>
2019-02-18 14:57:54 +01:00
</div>
<script type="text/javascript" src="static/script.js"></script>
</body>
</html>