|
|
@@ -48,7 +48,7 @@
|
|
|
</div>
|
|
|
<button type="submit" class="btn btn-primary">招待する</button>
|
|
|
</div>
|
|
|
- <input type="hidden" name="_csrf" value="{{ _csrf() }}">
|
|
|
+ <input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
</form>
|
|
|
|
|
|
{% set createdUser = req.flash('createdUser') %}
|
|
|
@@ -127,33 +127,33 @@
|
|
|
<li class="dropdown-button">
|
|
|
{% if sUser.status == 1 %}
|
|
|
<form action="/admin/user/{{ sUser._id.toString() }}/activate" method="post">
|
|
|
- <input type="hidden" name="_csrf" value="{{ _csrf() }}">
|
|
|
+ <input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
<button type="submit" class="btn btn-block btn-info">承認する</button>
|
|
|
</form>
|
|
|
{% endif %}
|
|
|
{% if sUser.status == 2 %}
|
|
|
<form action="/admin/user/{{ sUser._id.toString() }}/suspend" method="post">
|
|
|
- <input type="hidden" name="_csrf" value="{{ _csrf() }}">
|
|
|
+ <input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
<button type="submit" class="btn btn-block btn-warning">アカウント停止</button>
|
|
|
</form>
|
|
|
{% endif %}
|
|
|
{% if sUser.status == 3 %}
|
|
|
<form action="/admin/user/{{ sUser._id.toString() }}/activate" method="post">
|
|
|
- <input type="hidden" name="_csrf" value="{{ _csrf() }}">
|
|
|
+ <input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
<button type="submit" class="btn btn-block btn-default">元に戻す</button>
|
|
|
</form>
|
|
|
</li>
|
|
|
<li class="dropdown-button">
|
|
|
{# label は同じだけど、こっちは論理削除 #}
|
|
|
<form action="/admin/user/{{ sUser._id.toString() }}/remove" method="post">
|
|
|
- <input type="hidden" name="_csrf" value="{{ _csrf() }}">
|
|
|
+ <input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
<button type="submit" class="btn btn-block btn-danger">削除する</button>
|
|
|
</form>
|
|
|
{% endif %}
|
|
|
{% if sUser.status == 5 %}
|
|
|
{# label は同じだけど、こっちは物理削除 #}
|
|
|
<form action="/admin/user/{{ sUser._id.toString() }}/removeCompletely" method="post">
|
|
|
- <input type="hidden" name="_csrf" value="{{ _csrf() }}">
|
|
|
+ <input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
<button type="submit" class="btn btn-block btn-danger">削除する</button>
|
|
|
</form>
|
|
|
{% endif %}
|
|
|
@@ -167,7 +167,7 @@
|
|
|
{% if sUser.admin %}
|
|
|
{% if sUser.username != user.username %}
|
|
|
<form action="/admin/user/{{ sUser._id.toString() }}/removeFromAdmin" method="post">
|
|
|
- <input type="hidden" name="_csrf" value="{{ _csrf() }}">
|
|
|
+ <input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
<button type="submit" class="btn btn-block btn-danger">管理者からはずす</button>
|
|
|
</form>
|
|
|
{% else %}
|
|
|
@@ -175,7 +175,7 @@
|
|
|
{% endif %}
|
|
|
{% else %}
|
|
|
<form action="/admin/user/{{ sUser._id.toString() }}/makeAdmin" method="post">
|
|
|
- <input type="hidden" name="_csrf" value="{{ _csrf() }}">
|
|
|
+ <input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
<button type="submit" class="btn btn-block btn-primary">管理者にする</button>
|
|
|
</form>
|
|
|
{% endif %}
|