sprintf(buf, "User id: %-23s Login shell %-10s Class: %s",
info[U_UID], info[U_SHELL], info[U_CLASS]);
Put_message(buf);
- sprintf(buf, "Account is: %-20s Encrypted MIT ID number: %s",
+ sprintf(buf, "Account is: %-20s MIT ID number: %s",
UserState(atoi(info[U_STATE])), info[U_MITID]);
Put_message(buf);
sprintf(buf, MOD_FORMAT, info[U_MODBY], info[U_MODTIME],info[U_MODWITH]);
Put_message(temp_buf);
}
}
- temp_ptr = Strsave(info[U_MITID]);
- Put_message("User's MIT ID number (unencrypted, or encryption in quotes)");
- if (GetValueFromUser("", &temp_ptr) == SUB_ERROR)
+ if (GetValueFromUser("User's MIT ID number", &info[U_MITID]) == SUB_ERROR)
return(NULL);
- if ( strcmp( temp_ptr, info[U_MITID] ) != 0) {
- if (temp_ptr[0] == '"' &&
- temp_ptr[strlen(temp_ptr) - 1] == '"') {
- free(info[U_MITID]);
- temp_ptr[strlen(temp_ptr) - 1] = 0;
- info[U_MITID] = Strsave(++temp_ptr);
- } else {
- EncryptID(temp_buf, temp_ptr, info[U_FIRST], info[U_LAST]);
- free(info[U_MITID]);
- info[U_MITID] = Strsave(temp_buf);
- }
- }
- free(temp_ptr);
if (GetTypeFromUser("User's MIT Year (class)", "class", &info[U_CLASS]) ==
SUB_ERROR)
return(NULL);