hdus / pg_raster_upload

QGIS plugin for uploading raster data to a PostGIS database.
GNU General Public License v2.0
5 stars 3 forks source link

Asking for credentials when not necessary #10

Closed effjot closed 1 year ago

effjot commented 1 year ago

When Windows authentication is set up for the Postgres server, the plugin still asks for username and password. When I select “ignore” in the QGIS credential dialog, the plugin shows an error message “username or password incorrect” and drops into the debugger with an Type Error “cannot unpack non-iterable NoneType object” on line 188, because init_DB() didn’t return a tuple but a single None.

I have added credential-less authentication and fixed the Type Errors with init_DB(). After testing, I’ll prepare a pull request.

hdus commented 1 year ago

The PR is merged into master