Files
netbird/idp/dex/web/templates/password.html
Nicolas Frati e89aad09f5 [management] Enable MFA for local users (#5804)
* wip: totp for local users

* fix providers not getting populated

* polished UI and fix post_login_redirect_uri

* fix: make sure logout is only prompted from oidc flow

Signed-off-by: jnfrati <nicofrati@gmail.com>

* update templates

Signed-off-by: jnfrati <nicofrati@gmail.com>

* deps: update dex dependency

Signed-off-by: jnfrati <nicofrati@gmail.com>

* fix qube issues

Signed-off-by: jnfrati <nicofrati@gmail.com>

* replace window with globalThis on home html

Signed-off-by: jnfrati <nicofrati@gmail.com>

* fixed coderabbit comments

Signed-off-by: jnfrati <nicofrati@gmail.com>

* debug

* remove unused config and rename totp issuer

* deps: update dex reference to latest

* add dashboard post logout redirect uri to embedded config

* implemented api for mfa configuration

* update docs and config parsing

* catch error on idp manager init mfa

* fix tests

* Add remember me  for MFA

* Add cookie encryption and session share between tabs

* fixed logout showing non actionable error and session cookie encription key

* fixed missing mfa settings on sql query for account

* fix code index for mfa activity

---------

Signed-off-by: jnfrati <nicofrati@gmail.com>
Co-authored-by: braginini <bangvalo@gmail.com>
2026-05-08 16:31:20 +02:00

60 lines
1.7 KiB
HTML
Executable File

{{ template "header.html" . }}
<div class="nb-card">
<h1 class="nb-heading">Sign in</h1>
<p class="nb-subheading">Enter your credentials</p>
<form method="post" action="{{ .PostURL }}">
{{ if .Invalid }}
<div class="nb-error">
Invalid {{ .UsernamePrompt }} or password.
</div>
{{ end }}
<div class="nb-form-group">
<label class="nb-label" for="login">{{ .UsernamePrompt }}</label>
<input
type="text"
id="login"
name="login"
class="nb-input"
autocomplete="username"
placeholder="Enter your {{ .UsernamePrompt | lower }}"
{{ if .Username }}value="{{ .Username }}"{{ else }}autofocus{{ end }}
required
>
</div>
<div class="nb-form-group">
<label class="nb-label" for="password">Password</label>
<input
type="password"
id="password"
name="password"
class="nb-input"
autocomplete="current-password"
placeholder="Enter your password"
{{ if .Invalid }}autofocus{{ end }}
required
>
</div>
<button type="submit" id="submit-login" class="nb-btn">
Sign in
</button>
</form>
{{ if .BackLink }}
<div class="nb-back-link">
<a href="{{ .BackLink }}" class="nb-link">Choose another login method</a>
</div>
{{ end }}
</div>
<script>
document.querySelector('form').onsubmit = function() {
document.getElementById('submit-login').disabled = true;
};
</script>
{{ template "footer.html" . }}