Use device severDeviceName in base request

This commit is contained in:
1hitsong 2023-10-27 10:53:33 -04:00
parent a78dcca4f7
commit f3c04377c1

View File

@ -205,11 +205,7 @@ function authRequest(request as object) as object
auth = auth + ", UserId=" + QUOTE + m.global.session.user.id + QUOTE
end if
if m.global.session.user <> invalid and m.global.session.user.friendlyName <> invalid
auth = auth + ", DeviceId=" + QUOTE + m.global.device.id + m.global.session.user.friendlyName + QUOTE
else
auth = auth + ", DeviceId=" + QUOTE + m.global.device.id + QUOTE
end if
auth = auth + ", DeviceId=" + QUOTE + m.global.device.serverDeviceName + QUOTE
if m.global.session.user.authToken <> invalid
auth = auth + ", Token=" + QUOTE + m.global.session.user.authToken + QUOTE