ClaimIt
ClaimIt copied to clipboard
Curl commands do not url encode parameters. Script claims user error. It is passing malformed passwords to the server.
fix is below:
function GetLoginToken()
{
url="https://plex.tv/api/v2/users/signin"
local response=$(curl -X POST -i -k -L -s $url --data-urlencode "login=$1" --data-urlencode "password=$2" --data-urlencode "X-Plex-Client-Identifier=ClaimIt-$3")
Another instance where passwords are not being handled correctly can be found here:
https://forums.plex.tv/t/plex-running-on-synology-but-suddenly-cant-access/426977/3
User has an unusual email address and the ClaimIt script is not handling that properly and returning an invalid username & password etc.
fix is below:
Making this change did the trick for me--much appreciated @akutruff !