When self-service user creation is disabled, also disable
[citadel.git] / citadel / config.c
index 35a25b8cba7867feec00d0b518b2847f2bef7bcf..d938065a2ab166b931d7b83937e6fc44d5be9c43 100644 (file)
@@ -106,6 +106,10 @@ void get_config(void) {
                config.c_net_freq = 3600L;      /* once per hour default */
        if (config.c_net_freq < 300L) 
                config.c_net_freq = 300L;
+
+       /* "create new user" never works with host auth */
+       if (config.c_auth_mode == 1)
+               config.c_disable_newu = 1;
 }