mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 07:47:47 +02:00
feat: api token migration, new ACP tokens list, token creation
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
<li data-type="item" class="list-group-item">
|
||||
<div class="row">
|
||||
<div class="col-9">
|
||||
<span class="badge bg-primary">{{{ if uid }}}uid {uid}{{{ else }}}master{{{ end }}}</span>
|
||||
{{{ if token }}}<input class="form-control-plaintext" type="text" readonly="readonly" value="{token}" size="32" />{{{ else }}}<em class="text-warning">[[admin/settings/api:token-on-save]]</em>{{{ end }}}<br />
|
||||
<p>
|
||||
{{{ if description }}}
|
||||
{description}
|
||||
{{{ else }}}
|
||||
<em>[[admin/settings/api:no-description]]</em>
|
||||
{{{ end }}}
|
||||
<br />
|
||||
<small class="text-info">{./lastSeen}</small>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-3 text-end">
|
||||
<button type="button" data-type="edit" class="btn btn-info">Edit</button>
|
||||
<button type="button" data-type="remove" class="btn btn-danger">Delete</button>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@@ -1,15 +1,13 @@
|
||||
<form>
|
||||
<input type="hidden" name="token" />
|
||||
<input type="hidden" name="timestamp" />
|
||||
<form role="form">
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="uid">[[admin/settings/api:uid]]</label>
|
||||
<input type="text" inputmode="numeric" pattern="\d+" name="uid" class="form-control" placeholder="1" />
|
||||
<input type="text" inputmode="numeric" pattern="\d+" name="uid" class="form-control" placeholder="0" value="{./uid}" />
|
||||
<p class="form-text">
|
||||
[[admin/settings/api:uid-help-text]]
|
||||
</p>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="description">[[admin/settings/api:description]]</label>
|
||||
<input type="text" name="description" class="form-control" placeholder="Description" />
|
||||
<input type="text" name="description" class="form-control" placeholder="Description" value="{./description}" />
|
||||
</div>
|
||||
</form>
|
||||
Reference in New Issue
Block a user