X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..8f0e4a34b2dd1c54f80d953f7337ac89047a2654:/projects/stargazer/plugins/store/postgresql/postgresql_store_admins.cpp diff --git a/projects/stargazer/plugins/store/postgresql/postgresql_store_admins.cpp b/projects/stargazer/plugins/store/postgresql/postgresql_store_admins.cpp index 28bfbc0c..5b27cb80 100644 --- a/projects/stargazer/plugins/store/postgresql/postgresql_store_admins.cpp +++ b/projects/stargazer/plugins/store/postgresql/postgresql_store_admins.cpp @@ -21,8 +21,8 @@ /* * Administrators manipulation methods * - * $Revision: 1.2 $ - * $Date: 2009/06/09 12:32:39 $ + * $Revision: 1.3 $ + * $Date: 2010/11/08 10:10:24 $ * */ @@ -32,10 +32,10 @@ #include +#include "stg/locker.h" +#include "stg/admin_conf.h" +#include "stg/blowfish.h" #include "postgresql_store.h" -#include "stg_locker.h" -#include "admin_conf.h" -#include "blowfish.h" #define adm_enc_passwd "cjeifY8m3" @@ -63,7 +63,7 @@ if (StartTransaction()) return -1; } -result = PQexec(connection, "SELECT login FROM tb_admins"); +result = PQexec(connection, "SELECT login FROM tb_admins WHERE login <> '@stargazer'"); if (PQresultStatus(result) != PGRES_TUPLES_OK) {