summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3d7837a)
self-service registration.
config.c_net_freq = 3600L; /* once per hour default */
if (config.c_net_freq < 300L)
config.c_net_freq = 300L;
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;
+ /* If users cannot create their own accounts, they cannot re-register either. */
+ if ( (config.c_disable_newu) && (CC->user.axlevel < 6) ) {
+ return(1);
+ }
}
/* Is this a room with an address book in it? */
}
/* Is this a room with an address book in it? */
+ /* If users cannot create their own accounts, they cannot re-register either. */
+ if ( (config.c_disable_newu) && (CC->user.axlevel < 6) ) {
+ cprintf("%d Self-service registration is not allowed here.\n",
+ ERROR + HIGHER_ACCESS_REQUIRED);
+ }
+
my_vcard = vcard_get_user(&CC->user);
strcpy(tmpaddr, "");
strcpy(tmpcity, "");
my_vcard = vcard_get_user(&CC->user);
strcpy(tmpaddr, "");
strcpy(tmpcity, "");