Under Pi-hole beta 6.0, pihole -q responds "Authentication failed", asks for password

This is actually expected behaviour, and is due to the pihole command needing to use ftl's API to gather the results.

Take a read through the discussion on the following PR:

https://github.com/pi-hole/FTL/pull/1999

Though, I believe this additional PR still needs to be merged in order for the functionality to be "complete":

https://github.com/pi-hole/pi-hole/pull/5689