UserState(atoi(info[U_STATE])), info[U_MITID],
*info[U_SIGNATURE] ? (status ? "Bad" : "Yes") : "No");
Put_message(buf);
- if (!atoi(info[U_STATE]))
+ status = atoi(info[U_STATE]);
+ if (status == 0 || status == 2)
{
sprintf(buf, "User %s secure Account Coupon to register",
atoi(info[U_SECURE]) ? "needs" : "does not need");
char **AskUserInfo(char **info, Bool name)
{
- int i;
+ int i, state;
#ifdef HAVE_GDSS
SigInfo si;
#endif
if (GetValueFromUser("Comments", &info[U_COMMENT]) == SUB_ERROR)
return NULL;
- if (!name || !atoi(info[U_STATE]))
+ state = atoi(info[U_STATE]);
+ if (!name || state == 0 || state == 2)
{
if (YesNoQuestion("User needs secure Account Coupon to register",
atoi(info[U_SECURE]) ? TRUE : FALSE) == FALSE)