Giter VIP home page Giter VIP logo

Comments (8)

eddybl avatar eddybl commented on May 27, 2024

I looked into the behavior of the Authentication class a bit more and I think there are some more general issues:

  1. Failed login attempts might only result in an unrelated error message (see above)
  2. The returns for login() etc are not used anywhere, since the returns are never used. This should probably be prints instead (for debugging)
  3. most other methods other then login() seem to use a fixed version: , although they should probably all use version: self._version
  4. A failed login does not result in any exception, so the code continues and may result in the debug output You are now logged in!

from synology-api.

N4S4 avatar N4S4 commented on May 27, 2024

It surely needs to improve, I was working on error handling function as PR #100 suggest but I wasn't much into it.
Ill try to work on it and take your suggestion time permitting

from synology-api.

eddybl avatar eddybl commented on May 27, 2024

I will try to work on a pull request. Once I started looking into it it got just bigger then I originally thought, so it might take a couple of days to find enough time ;)

from synology-api.

N4S4 avatar N4S4 commented on May 27, 2024

lol me too, however I'll do my best to improve this part

from synology-api.

N4S4 avatar N4S4 commented on May 27, 2024

ok so based on PR #100 and very little changes I managed to let error codes work and implemented in all modules, I still need to add it for logout process.
I can upload to a new branck and if you want to test too would be great

check it out at error codes branch

from synology-api.

eddybl avatar eddybl commented on May 27, 2024

Ok, I will try to have a look this evening!

from synology-api.

eddybl avatar eddybl commented on May 27, 2024

I added a PR on the error_code branch: #108

from synology-api.

N4S4 avatar N4S4 commented on May 27, 2024

closed with PR #109

from synology-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.