Improve temporary device token flow

This commit is contained in:
JonnyWong16 2021-03-09 23:09:57 -08:00
parent f7e1dc97d8
commit 15f90ea433
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
4 changed files with 33 additions and 26 deletions

View file

@ -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);
}