diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index 8f8c2785a..d1f8ef218 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -1017,6 +1017,10 @@ void PostgreSQL::commitThread() get(nwidInt, nwOrig, memberidInt, memOrig); + if(memOrig["authorized"] && ! (*config)["authorized"]) { + fprintf(stderr, "Member %s deauthed\n", (*config)["id"].get().c_str()); + } + _memberChanged(memOrig, memNew, qitem.second); } else { fprintf(stderr, "Can't notify of change. Error parsing nwid or memberid: %llu-%llu\n", (unsigned long long)nwidInt, (unsigned long long)memberidInt);