-
Notifications
You must be signed in to change notification settings - Fork 135
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
Internal Error 500 on Login #514
Comments
Ahh, that's an oversight on my part. Think about it, there are a couple ways to address this.
Not sure which route I'll go with, may go ahead implement option 1 as a temporary measure to get it working until I can make up my mind. |
Posting this here for myself to come back to. So it looks like we can get the email and username when looking up the friend's list.
Knowing that we have that data to work with, we can store the email along with the username. I wasn't the one that implemented the user permissions so I have started familiarizing myself with that functionalities codebase and it's honestly in major need of refactoring. This is likely going to be a bit of a project as I would rather rework the logic behind this area of the application to make it more complete and stable. In the meantime, I would recommend enable requiring password authentication for user login's. |
How does that work with Managed Users though? They don't have an account on Plex.tv, or is this a local account that exists in the MongoDB? |
I completely forgot that managed users are not full Plex.tv accounts.
The only way around that right now would be to add an else clause that
simply sets the plexUsername variable to the plexLogin value passed in.
That should work around the issue for now. I'll see about getting it thrown
in a minor update tonight.
…On Fri, Dec 15, 2017, 11:43 PM gdavidp ***@***.***> wrote:
How does that work with Managed Users though? They don't have an account
on Plex.tv, or is this a local account that exists in the MongoDB?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#514 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQbPDfg7vIA9UhloKwBP3iG5ZTgX30dQks5tA1h2gaJpZM4RBeNo>
.
|
Ok, just an update(I haven't forgotten about this), I found what looks to be the current endpoint for getting a plex accounts friends list that includes whether or not the user is a home user!!
This should give me what I need to be able to implement this the correct way and clean up the authentication codebase allot. I'm trying to do this correctly so that we aren't revisiting this down the road so please bear with me. |
I am also experiencing this issue with a fresh install. Using version 1.12.2 Similar logs to above. The only way to leverage this at the moment looks to be to disable authentication entirely. |
Same issue here. |
Just updated yesterday and I'm seeing this issue now too. I agree that it's silly not to require a password, but some people find it insecure to type in their plex password into a non-plex site. ¯_(ツ)_/¯ |
I just installed this and having the same issue. Auth has to be disabled. |
Hello, I am curious, was this something that was ever fixed? |
Issue:
Getting an internal error when trying to login with either a username or email when "Require users to login with their passwords" is NOT enabled, but "Enable user authentication" is enabled.
The error occurs in this file: https://github.com/lokenx/plexrequests-meteor/blob/master/server/methods/authentication/plexAuthentication.js
In the function 'checkPlexUser', specifically in the return case. This is because earlier, there is an if condition:
plexUsername is not defined if plexAuthenticationPASSWORDS isn't enabled, and in the return:
return (friendsList.indexOf(plexUsername.toLowerCase()) > -1)
, the toLowerCase() function fails on a null variable.Attempted Solution:
I set plexUsername before the if condition to the plexLogin supplied to the function, and this worked and allowed login via plex username but it now fails to login throwing an incorrect login error instead. This is because that if statement fetched the username via the login information.
I am not sure if the Plex API allows you to fetch a username from an email without a password.
The text was updated successfully, but these errors were encountered: