b09a13458f
This allows users of the LDAP connector to give users of Dex' login prompt an idea of what they should enter for a username. Before, irregardless of how the LDAP connector was set up, the prompt was Username [_________________] Password [_________________] Now, this is configurable, and can be used to say "MyCorp SSO Login" if that's what it is. If it's not configured, it will default to "Username". For the passwordDB connector (local users), it is set to "Email Address", since this is what it uses. Signed-off-by: Stephan Renatus <srenatus@chef.io>
31 lines
1.1 KiB
HTML
31 lines
1.1 KiB
HTML
{{ template "header.html" . }}
|
|
|
|
<div class="theme-panel">
|
|
<h2 class="theme-heading">Log in to Your Account</h2>
|
|
<form method="post" action="{{ .PostURL }}">
|
|
<div class="theme-form-row">
|
|
<div class="theme-form-label">
|
|
<label for="userid">{{ .UsernamePrompt }}</label>
|
|
</div>
|
|
<input tabindex="1" required id="login" name="login" type="text" class="theme-form-input" placeholder="{{ .UsernamePrompt | lower }}" {{ if .Username }} value="{{ .Username }}" {{ else }} autofocus {{ end }}/>
|
|
</div>
|
|
<div class="theme-form-row">
|
|
<div class="theme-form-label">
|
|
<label for="password">Password</label>
|
|
</div>
|
|
<input tabindex="2" required id="password" name="password" type="password" class="theme-form-input" placeholder="password" {{ if .Invalid }} autofocus {{ end }}/>
|
|
</div>
|
|
|
|
{{ if .Invalid }}
|
|
<div id="login-error" class="dex-error-box">
|
|
Invalid {{ .UsernamePrompt }} and password.
|
|
</div>
|
|
{{ end }}
|
|
|
|
<button tabindex="3" id="submit-login" type="submit" class="dex-btn theme-btn--primary">Login</button>
|
|
|
|
</form>
|
|
</div>
|
|
|
|
{{ template "footer.html" . }}
|