Issue: The logic for checking credentials uses multiple fallbacks and hardcoded checks for danbooru vs gelbooru.
Solution: Define an Interface or BaseClass for Auth that all Adapters must implement. Let the UI simply call adapter.login(creds) without knowing if it's Gelbooru or Danbooru.
Issue: The logic for checking credentials uses multiple fallbacks and hardcoded checks for danbooru vs gelbooru.
Solution: Define an Interface or BaseClass for Auth that all Adapters must implement. Let the UI simply call adapter.login(creds) without knowing if it's Gelbooru or Danbooru.