char *deleteme = NULL;
long len;
void *Value;
- char *Key;
+ const char *Key;
int num_deleted = 0;
keys = NewHash(1, NULL);
/* 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);
/* 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);
* 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();