aboutsummaryrefslogtreecommitdiff
path: root/src/database_postgres.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-10-30 22:15:57 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-10-30 22:15:57 -0300
commit093e1563df314c661bb1b73524309fd154001ce2 (patch)
tree3178737407116a0608bf11a1d321649e1642dd8f /src/database_postgres.cc
parentd36b26307d55602e2116ce3fcfa767693c266d7a (diff)
downloadquerymanager-093e1563df314c661bb1b73524309fd154001ce2.tar.gz
querymanager-093e1563df314c661bb1b73524309fd154001ce2.zip
turn error codes into enums + check empty credentials before login
Using enums instead of hard coded numbers for error codes should help with readability, even though they're local to the functions that use them to avoid flooding the namespace. Checking whether credentials are empty before login will prevent error messages such as "account disabled" from showing up when no account is specified, which may look weird. It'll also avoid any database reads although this shouldn't really make a difference torwards performance or security since it's only an edge case.
Diffstat (limited to 'src/database_postgres.cc')
0 files changed, 0 insertions, 0 deletions