added pam auth
This commit is contained in:
@@ -302,6 +302,14 @@
|
||||
Parental Control
|
||||
</h1>
|
||||
|
||||
<div style="margin-top:8px;font-size:14px;">Signed in as <strong>{{ username }}</strong>
|
||||
<form method="post" action="/logout" style="display:inline;margin-left:12px;">
|
||||
<input type="hidden" name="csrf" value="{{ csrf_token }}">
|
||||
<input type="hidden" name="csrf" value="{{ csrf_token }}">
|
||||
<button type="submit" class="secondary">Log out</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
|
||||
<main>
|
||||
@@ -359,6 +367,7 @@
|
||||
method="post"
|
||||
action="/admin/users/{{ user.id }}/unlock"
|
||||
>
|
||||
<input type="hidden" name="csrf" value="{{ csrf_token }}">
|
||||
|
||||
<button
|
||||
class="primary"
|
||||
@@ -375,6 +384,7 @@
|
||||
method="post"
|
||||
action="/admin/users/{{ user.id }}/lock"
|
||||
>
|
||||
<input type="hidden" name="csrf" value="{{ csrf_token }}">
|
||||
|
||||
<button
|
||||
class="warning"
|
||||
@@ -392,6 +402,7 @@
|
||||
method="post"
|
||||
action="/admin/users/{{ user.id }}/terminate"
|
||||
>
|
||||
<input type="hidden" name="csrf" value="{{ csrf_token }}">
|
||||
|
||||
<button
|
||||
class="secondary"
|
||||
@@ -476,6 +487,7 @@
|
||||
method="post"
|
||||
action="/admin/users/{{ user.id }}/allowance"
|
||||
>
|
||||
<input type="hidden" name="csrf" value="{{ csrf_token }}">
|
||||
|
||||
<input
|
||||
type="hidden"
|
||||
@@ -613,6 +625,7 @@
|
||||
method="post"
|
||||
action="/admin/windows/{{ window.id }}/delete"
|
||||
>
|
||||
<input type="hidden" name="csrf" value="{{ csrf_token }}">
|
||||
|
||||
<button
|
||||
class="danger"
|
||||
@@ -634,6 +647,7 @@
|
||||
action="/admin/users/{{ user.id }}/window"
|
||||
style="margin-top: 12px;"
|
||||
>
|
||||
<input type="hidden" name="csrf" value="{{ csrf_token }}">
|
||||
|
||||
<input
|
||||
type="hidden"
|
||||
@@ -686,6 +700,7 @@
|
||||
method="post"
|
||||
action="/admin/users/{{ user.id }}/grant"
|
||||
>
|
||||
<input type="hidden" name="csrf" value="{{ csrf_token }}">
|
||||
|
||||
<input
|
||||
type="number"
|
||||
@@ -841,6 +856,7 @@
|
||||
);
|
||||
"
|
||||
>
|
||||
<input type="hidden" name="csrf" value="{{ csrf_token }}">
|
||||
|
||||
<button
|
||||
class="danger"
|
||||
|
||||
Reference in New Issue
Block a user