mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 21:51:14 -07:00
Save client id with token
This commit is contained in:
parent
654ff7bdb6
commit
8bb83cff64
3 changed files with 7 additions and 6 deletions
|
@ -2746,7 +2746,7 @@ $(document).ready(function() {
|
|||
$("#pms-token-status").html('<i class="fa fa-refresh fa-spin"></i> Waiting for authentication...').fadeIn('fast');
|
||||
}
|
||||
function OAuthSuccessCallback(authToken) {
|
||||
$.post('save_pms_token', { token: authToken }, function() {
|
||||
$.post('save_pms_token', { token: authToken, client_id: $('#pms_client_id').val() }, function() {
|
||||
showMsg('<i class="fa fa-check"></i> Saved new Plex.tv token.', false, true, 5000);
|
||||
});
|
||||
$("#pms-token-status").html('<i class="fa fa-check"></i> Authentication successful.').fadeIn('fast');
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
</p>
|
||||
</div>
|
||||
<input type="hidden" id="pms_token_validated" value="0" data-validate="validatePMStoken">
|
||||
<input type="hidden" name="pms_client_id" id="pms_client_id" value="${config['pms_client_id']}">
|
||||
<input type="hidden" name="pms_client_id" id="pms_client_id" value="">
|
||||
<button id="sign-in-plex" class="btn btn-form" type="button">Sign In with Plex</button>
|
||||
<span style="margin-left: 10px; display: none;" id="pms-token-status"></span>
|
||||
</div>
|
||||
|
@ -556,7 +556,7 @@ $(document).ready(function() {
|
|||
$("#pms-token-status").html('<i class="fa fa-refresh fa-spin"></i> Waiting for authentication...').fadeIn('fast');
|
||||
}
|
||||
function OAuthSuccessCallback(authToken) {
|
||||
$.post('save_pms_token', { token: authToken }, function () {
|
||||
$.post('save_pms_token', { token: authToken, client_id: $('#pms_client_id').val() }, function () {
|
||||
$("#pms_token_validated").val(1);
|
||||
});
|
||||
$("#pms-token-status").html('<i class="fa fa-check"></i> Authentication successful.').fadeIn('fast');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue