us.uid = NATIVE_AUTH_UID;
}
CtdlPutUserLock(&us);
- if (us.uid > 0) { // if non-native auth , index by uid
+ if ((us.uid > 0) && (us.uid != NATIVE_AUTH_UID)) { // if non-native auth , index by uid
+
+ syslog(LOG_DEBUG, "\033[31m attaching %d to %s \033[0m", us.uid , us.fullname);
+
+
StrBuf *claimed_id = NewStrBuf();
StrBufPrintf(claimed_id, "uid:%d", us.uid);
attach_extauth(&us, claimed_id);
syslog(LOG_INFO, "Existing database version on disk is %d", CtdlGetConfigInt("MM_hosted_upgrade_level"));
-
-
- reindex_uids(); // FIXME FIXME FIXME remove this line after testing
-
-
if (CtdlGetConfigInt("MM_hosted_upgrade_level") < REV_LEVEL) {
syslog(LOG_WARNING, "Server hosted updates need to be processed at this time. Please wait...");
}