Adding LDAP login
This commit is contained in:
1 parent
ab39191af5
commit
cda15df2ed
22 files changed
+582
-15
No files matched your search
@@ -28,6 +28,16 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
{% if r.is_default %}
|
||||
<span class="tag">default</span>
|
||||
{% else %}
|
||||
<button class="btn btn-ghost"
|
||||
hx-post="/admin/roles/{{ r.id }}/default"
|
||||
hx-target="#role-list"
|
||||
hx-swap="outerHTML">Make default</button>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="row-actions">
|
||||
<button class="btn btn-ghost"
|
||||
hx-get="/admin/roles/{{ r.id }}/edit"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<tr id="role-{{ r.id }}">
|
||||
<td colspan="5">
|
||||
<td colspan="6">
|
||||
<form hx-post="/admin/roles/{{ r.id }}"
|
||||
hx-target="#role-{{ r.id }}"
|
||||
hx-swap="outerHTML"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div id="role-list" class="card">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr><th>ID</th><th>Name</th><th>Description</th><th>Permissions</th><th></th></tr>
|
||||
<tr><th>ID</th><th>Name</th><th>Description</th><th>Permissions</th><th>Default</th><th></th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for r in roles %}
|
||||
|
||||
@@ -14,5 +14,19 @@
|
||||
</label>
|
||||
<button type="submit" class="btn btn-primary">Sign in</button>
|
||||
</form>
|
||||
|
||||
{% if ldap_enabled %}
|
||||
<form class="card auth-card" method="post" action="/login/ldap">
|
||||
<h2>Sign in with LDAP</h2>
|
||||
<p class="muted">Use your directory username and password</p>
|
||||
<label>Username
|
||||
<input type="text" name="username" value="{{ username or '' }}" required>
|
||||
</label>
|
||||
<label>Password
|
||||
<input type="password" name="password" required>
|
||||
</label>
|
||||
<button type="submit" class="btn btn-primary">Sign in with LDAP</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user