This repository has been archived on 2022-07-28. You can view files and clone it, but cannot push or open issues or pull requests.
hydra_oidc_poc/templates/idp/login.gohtml

16 lines
1 KiB
Plaintext
Raw Normal View History

2020-12-30 19:31:10 +01:00
{{ define "content" }}
2021-01-02 11:38:09 +01:00
<form class="form-signin" method="post">
<img src="/images/CAcert-logo.svg" width="300" height="68" alt="CAcert" class="mb-4">
<h1 class="h3 mb-3">{{ .Title }}</h1>
2020-12-30 19:31:10 +01:00
{{ .csrfField }}
2021-01-01 14:21:26 +01:00
<input type="hidden" name="action" value="password-login"/>
{{ if .errors.Form}}<p>{{ .errors.Form }}</p>{{ end }}
2020-12-30 19:31:10 +01:00
{{ if .errors.Email }}<p>{{ .errors.Email }}</p>{{ end }}
2021-01-02 11:38:09 +01:00
<label for="email" class="sr-only">{{ .LabelEmail }}</label>
<input type="email" id="email" class="form-control" placeholder="{{ .LabelEmail }}" required autofocus name="email" value="{{ .Email }}"/><br/>
2020-12-30 19:31:10 +01:00
{{ if .errors.Password }}<p>{{ .errors.Password }}</p>{{ end }}
2021-01-02 11:38:09 +01:00
<label for="password" class="sr-only">{{ .LabelPassword }}</label>
<input type="password" id="password" class="form-control" placeholder="{{ .LabelPassword }}" name="password" value=""/><br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">{{ .LabelLogin }}</button>
2020-12-30 19:31:10 +01:00
</form>
{{ end }}