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

Add an action to check your credentials from the add-on settings. #352

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

michaelarnauts
Copy link
Contributor

Fixes #351

This adds a function to tokenresolver.py to just check the tokens. I couldn't reuse an existing function since they look in cache first. The credentials tab in the settings has an action now to run this function that checks the login credentials. A message is displayed indicating success or failure, and the settings dialog is shown again.

Note that I had to add option="close" to the settings since Kodi only saves the settings when the dialog is closed.

I also added *.pyo to the .gitignore file. Kodi creates these compiled files.

@dagwieers
Copy link
Collaborator

I would like to postpone this to v2.0.1 or v2.1.0 (whatever comes first).

@dagwieers dagwieers added the enhancement New feature or request label Jun 30, 2019
@dagwieers dagwieers added this to the Future milestone Jun 30, 2019
@mediaminister
Copy link
Collaborator

mediaminister commented Jun 30, 2019

This should definitely be postponed because #351 is maybe not fully valid.

@michaelarnauts
Copy link
Contributor Author

Sure, I wasn't aiming at the 2.0 release

@dagwieers
Copy link
Collaborator

I tested it yesterday and it works fine.

I am even inclined to remove the automatic clearing of the password when authentication fails. It would also be nice if there was an option to show the password (even if temporarily).

@dagwieers
Copy link
Collaborator

So will the next version be v2.0.1 or v2.1.0 ? :-)
We are running out of ideas to implement...

@dagwieers dagwieers merged commit 3c736c5 into add-ons:master Jul 3, 2019
@michaelarnauts
Copy link
Contributor Author

@dagwieers, i would prefer if the password won't reset. I had a typo in my username and it was a bit strange that my password was cleared :)

@dagwieers
Copy link
Collaborator

@michaelarnauts Exactly my point :-) Do you want to make a PR for this?

@dagwieers dagwieers modified the milestones: Future, v2.1.0 Jul 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow checking credentials from an action in the settings xml
3 participants