In adduser(), delete the (possible) grave.

This commit is contained in:
grunfink
2026-04-29 18:36:43 +02:00
parent 8e413311ce
commit 9c033f452e
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -3303,6 +3303,10 @@ int grave(const char *objid, int op)
}
break;
case 2: /** del **/
unlink(fn);
break;
}
return ret;
+3
View File
@@ -369,6 +369,9 @@ int adduser(const char *uid)
fclose(f);
}
/* remove the grave */
grave(uid, 2);
printf("\nUser password is %s\n", pwd);
printf("\nGo to %s/%s and continue configuring your user there.\n", srv_baseurl, uid);