2021-03-05 16:24:45 +01:00
|
|
|
<!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 }}
|
|
|
|
|
|
|
|
{{ 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
|
|
|
|
2021-03-05 16:24:45 +01:00
|
|
|
<input type="text" placeholder="username" name="username"/>
|
|
|
|
<input type="password" placeholder="password" name="password"/>
|
2019-02-18 14:57:54 +01:00
|
|
|
|
2021-03-05 16:24:45 +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>
|
2021-03-05 16:24:45 +01:00
|
|
|
<button type="submit">login</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
2019-02-18 14:57:54 +01:00
|
|
|
</div>
|
2021-03-05 16:24:45 +01:00
|
|
|
<script type="text/javascript" src="static/script.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|