ClaimIt icon indicating copy to clipboard operation
ClaimIt copied to clipboard

Curl commands do not url encode parameters. Script claims user error. It is passing malformed passwords to the server.

Open akutruff opened this issue 6 years ago • 2 comments

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")

akutruff avatar May 23 '19 18:05 akutruff

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.

trumpy81 avatar Jun 27 '19 01:06 trumpy81

fix is below:

Making this change did the trick for me--much appreciated @akutruff !

yeliaBdE avatar Oct 09 '22 15:10 yeliaBdE