Change the become_user parameter of create_user() to an enum, to make calling code...
[citadel.git] / citadel / modules / ctdlproto / serv_user.c
index 7b7725a6edcffdd9ce8c55893fcad64343ba8cf0..a3238a522c9663e36cc5f074ae1ba8edf8058f3f 100644 (file)
@@ -132,7 +132,7 @@ void cmd_newu(char *cmdbuf)
                return;
        }
 
-       a = create_user(username, 1);
+       a = create_user(username, CREATE_USER_BECOME_USER);
 
        if (a == 0) {
                logged_in_response();
@@ -210,7 +210,7 @@ void cmd_creu(char *cmdbuf)
 
        extract_token(password, cmdbuf, 1, '|', sizeof password);
 
-       a = create_user(username, 0);
+       a = create_user(username, CREATE_USER_DO_NOT_BECOME_USER);
 
        if (a == 0) {
                if (!IsEmptyStr(password)) {