OIDC: allow to enable only OIDC login for Web UIs

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2022-07-19 22:25:00 +02:00
parent 21682d1c1d
commit d5946da1e2
19 changed files with 281 additions and 91 deletions

View File

@@ -28,6 +28,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
{{end}}
<form id="login_form" action="{{.CurrentURL}}" method="POST" autocomplete="off"
class="user-custom">
{{if not .FormDisabled}}
<div class="form-group">
<input type="text" class="form-control form-control-user-custom"
id="inputUsername" name="username" placeholder="Username" required>
@@ -45,6 +46,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<button type="submit" class="btn btn-primary btn-user-custom btn-block">
Login
</button>
{{end}}
{{if .OpenIDLoginURL}}
<hr>
<a href="{{.OpenIDLoginURL}}" class="btn btn-secondary btn-user-custom btn-block">