mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 01:02:59 -07:00
Improve temporary device token flow
This commit is contained in:
parent
f7e1dc97d8
commit
15f90ea433
4 changed files with 33 additions and 26 deletions
|
@ -98,7 +98,9 @@ DOCUMENTATION :: END
|
|||
$.ajax({
|
||||
url: 'verify_mobile_device',
|
||||
type: 'GET',
|
||||
data: { device_token: token },
|
||||
data: {
|
||||
device_token: token
|
||||
},
|
||||
success: function (data) {
|
||||
if (data.result === 'success') {
|
||||
verifiedDevice = true;
|
||||
|
@ -135,7 +137,10 @@ DOCUMENTATION :: END
|
|||
$.ajax({
|
||||
url: 'verify_mobile_device',
|
||||
type: 'GET',
|
||||
data: { cancel: true },
|
||||
data: {
|
||||
device_token: $('#api_qr_token').val(),
|
||||
cancel: true
|
||||
},
|
||||
success: function (data) {
|
||||
showMsg('<i class="fa fa-times"></i> ' + data.message, false, true, 5000, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue