mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
feat: Add option to disable local auth form
This commit is contained in:
parent
59dac15bdf
commit
770cc1dbb3
10 changed files with 68 additions and 11 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
{{ define "content"}}
|
||||
<section class="login-form">
|
||||
{{ if not disableLocalAuth }}
|
||||
<form action="{{ route "checkLogin" }}" method="post">
|
||||
<input type="hidden" name="csrf" value="{{ .csrf }}">
|
||||
|
||||
|
@ -22,6 +23,7 @@
|
|||
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.loading" }}">{{ t "action.login" }}</button>
|
||||
</div>
|
||||
</form>
|
||||
{{ end }}
|
||||
{{ if .webAuthnEnabled }}
|
||||
<div class="webauthn">
|
||||
<div role="alert" class="alert alert-error hidden" id="webauthn-error">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div role="alert" class="alert alert-error">{{ .errorMessage }}</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if not disableLocalAuth }}
|
||||
<fieldset>
|
||||
<legend>{{ t "form.prefs.fieldset.authentication_settings" }}</legend>
|
||||
|
||||
|
@ -49,6 +50,7 @@
|
|||
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
{{ end }}
|
||||
|
||||
{{ if .webAuthnEnabled }}
|
||||
<fieldset>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue