UserState(atoi(info[U_STATE])), info[U_MITID],
*info[U_SIGNATURE] ? (status ? "Bad" : "Yes") : "No");
Put_message(buf);
- if (atoi(info[U_SECURE]))
- sprintf(buf, "Secure password set on %s.", atot(info[U_SECURE]));
- else
- sprintf(buf, "No secure password set.");
- Put_message(buf);
+ if (!atoi(info[U_STATE]))
+ {
+ sprintf(buf, "User %s secure Account Coupon to register",
+ atoi(info[U_SECURE]) ? "needs" : "does not need");
+ Put_message(buf);
+ }
sprintf(buf, "Comments: %s", info[U_COMMENT]);
Put_message(buf);
sprintf(buf, MOD_FORMAT, info[U_MODBY], info[U_MODTIME], info[U_MODWITH]);
if (GetValueFromUser("Comments", &info[U_COMMENT]) == SUB_ERROR)
return NULL;
- if (YesNoQuestion("Secure password set",
- atoi(info[U_SECURE]) ? TRUE : FALSE) == FALSE)
- {
- free(info[U_SECURE]);
- info[U_SECURE] = strdup("0");
- }
- else if (!strcmp(info[U_SECURE], "0"))
+ if (!name)
{
- char buf[16];
- struct timeval tv;
-
- gettimeofday(&tv, NULL);
- sprintf(buf, "%ld", (long) tv.tv_sec);
- free(info[U_SECURE]);
- info[U_SECURE] = strdup(buf);
+ if (YesNoQuestion("User needs secure Account Coupon to register",
+ atoi(info[U_SECURE]) ? TRUE : FALSE) == FALSE)
+ {
+ free(info[U_SECURE]);
+ info[U_SECURE] = strdup("0");
+ }
+ else
+ {
+ free(info[U_SECURE]);
+ info[U_SECURE] = strdup("1");
+ }
}
/* Sign record */
{
com_err(program_name, status, " getting filsys info, "
"not deactivating filesystem");
- FreeInfo(args);
- FreeQueue(elem);
return;
}
args = QueueTop(elem)->q_data;