diff --git a/src/server/slavefuncs.c b/src/server/slavefuncs.c --- a/src/server/slavefuncs.c +++ b/src/server/slavefuncs.c @@ -90,7 +90,7 @@ int register_user(char *username, char * /* @TODO: Parse the output buffer or something to check when user creation fails due to duplicate users. This is pretty important. */ ssh_keygen(); // generates distren_rsa - + conf_replace(username); // puts the person's username in the conf /* @TODO: Scan distrenslave.conf for !username and !key and replace them with "keyname" and the "username" */ return 1; } @@ -158,7 +158,7 @@ int login_user(char *username) /* Replaces username and key in the slave's conf file, currently pseudo */ -void conf_replace(char *username, char *key){ +void conf_replace(char *username){ // Doesn't delete anything! :D /* mktemp(); // Gets a new file to put data into