* follo hashiterator api-change
authorWilfried Göesgens <willi@citadel.org>
Sun, 7 Dec 2008 11:30:15 +0000 (11:30 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 7 Dec 2008 11:30:15 +0000 (11:30 +0000)
citadel/modules/expire/serv_expire.c
citadel/modules/openid/serv_openid_rp.c
citadel/modules/vcard/serv_vcard.c

index 7caf493d9677dea67b0e8d25f60cfca1c07e0fdf..2a585e5515f02068ef6f55fc43cc620d755fc225 100644 (file)
@@ -802,7 +802,7 @@ int PurgeStaleOpenIDassociations(void) {
        char *deleteme = NULL;
        long len;
        void *Value;
-       char *Key;
+       const char *Key;
        int num_deleted = 0;
 
        keys = NewHash(1, NULL);
@@ -824,7 +824,7 @@ int PurgeStaleOpenIDassociations(void) {
 
        /* Go through the hash list, deleting keys we stored in it */
 
-       HashPos = GetNewHashPos();
+       HashPos = GetNewHashPos(keys, 0);
        while (GetNextHashPos(keys, HashPos, &len, &Key, &Value)!=0)
        {
                CtdlLogPrintf(CTDL_DEBUG, "Deleting associated OpenID <%s>\n", Value);
index 2fb909784a37cb1e940594f113aebd0497e7b107..c911bda9b626aa005797b9e12b4b0082cac277a0 100644 (file)
@@ -150,7 +150,7 @@ void openid_purge(struct ctdluser *usbuf) {
 
        /* Go through the hash list, deleting keys we stored in it */
 
-       HashPos = GetNewHashPos();
+       HashPos = GetNewHashPos(keys, 0);
        while (GetNextHashPos(keys, HashPos, &len, &Key, &Value)!=0)
        {
                CtdlLogPrintf(CTDL_DEBUG, "Deleting associated OpenID <%s>\n", Value);
index 8561d43cec9ae7747a7208ceb6c05ed40c120e5a..02681b0217936bc3f4389da45264d05c5f5608bc 100644 (file)
@@ -718,8 +718,12 @@ int vcard_upload_aftersave(struct CtdlMessage *msg) {
                         * But if the user was an Aide or was edited by an Aide then we can
                         * Assume they don't need validating.
                         */
-                       if (CC->user.axlevel >= 6)
+                       if (CC->user.axlevel >= 6) {
+                               lgetuser(&CC->user, CC->curr_user);
+                               CC->user.flags |= US_REGIS;
+                               lputuser(&CC->user);
                                return (0);
+                       }
                        
                        set_mm_valid();