ukdtom / ClaimIt

ClaimIt 4 Plex Media Server
Mozilla Public License 2.0
74 stars 19 forks source link

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

Open akutruff opened 5 years ago

akutruff commented 5 years ago

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")
trumpy81 commented 5 years ago

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.

yeliaBdE commented 2 years ago

fix is below:

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