Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
akutruff opened this issue May 23, 2019 · 2 comments
Assignees

Comments

@akutruff
Copy link

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
Copy link
Collaborator

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
Copy link

yeliaBdE commented Oct 9, 2022

fix is below:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants