User-based API key. Closes #256.

This commit is contained in:
James Brooks
2015-01-03 17:51:35 +00:00
parent 1d30133851
commit 3d4c38c7ee
9 changed files with 187 additions and 1 deletions
+7
View File
@@ -33,9 +33,16 @@
<label>Password</label>
<input type='password' class='form-control' name='password' value='' />
</div>
<hr />
<div class='form-group'>
<label>API Key</label>
<input type='text' class='form-control' name='api_key' disabled value='{{ Auth::user()->api_key }}' />
<span class='help-block'>Regenerating your API key will revoke all existing applications.</span>
</div>
</fieldset>
<button type="submit" class="btn btn-success">Update profile</button>
<a href='/dashboard/user/{{ Auth::user()->id }}/api/regen' class='btn btn-warning'>Regenerate API Key</a>
</form>
</div>
</div>