Implement access token for command line things.

This commit is contained in:
James Cole
2017-09-14 18:27:22 +02:00
parent 43a66fd378
commit f54b4c3abc
6 changed files with 77 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
<div class="col-lg-6 col-lg-offset-3 col-md-6 col-sm-12">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Options</h3>
<h3 class="box-title">{{ 'options'|_ }}</h3>
</div>
<div class="box-body">
<p>
@@ -23,4 +23,28 @@
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6 col-lg-offset-3 col-md-6 col-sm-12">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">{{ 'personal_access_token'|_ }}</h3>
</div>
<div class="box-body">
<p>
{{ 'explain_access_token'|_ }}
</p>
<p>
<input id="token" type="text" class="form-control" name="token" value="{{ accessToken.data }}" size="32" maxlength="32" readonly />
</p>
<p>
<form action="{{ route('profile.regenerate') }}" method="post">
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
<button type="submit" class="btn btn-danger btn-xs"><i class="fa fa-refresh"></i> {{ 'regenerate_access_token'|_ }}</button>
</form>
</p>
</div>
</div>
</div>
</div>
{% endblock %}