feat(auth): implement user and device authentication
This commit is contained in:
@@ -18,5 +18,11 @@
|
||||
<a href="/tasks" {{if .Page.TasksCurrent}}aria-current="page"{{end}}>任务列表</a>
|
||||
<a href="/tasks/new" {{if .Page.NewCurrent}}aria-current="page"{{end}}>新建任务</a>
|
||||
</nav>
|
||||
{{if .Page.CSRFToken}}
|
||||
<form class="logout-form" method="post" action="/logout">
|
||||
<input type="hidden" name="csrf_token" value="{{.Page.CSRFToken}}">
|
||||
<button class="logout-button" type="submit">退出</button>
|
||||
</form>
|
||||
{{end}}
|
||||
</header>
|
||||
{{end}}
|
||||
|
||||
Reference in New Issue
Block a user