projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Client and server options to disable self-service user account creation
[citadel.git]
/
citadel
/
user_ops.c
diff --git
a/citadel/user_ops.c
b/citadel/user_ops.c
index 7954cfc76f5a8ebdc001b9a5ef32dcaed93d5d11..701476e26f32c0b3d3cbee7beed91eeb5e28d5b1 100644
(file)
--- a/
citadel/user_ops.c
+++ b/
citadel/user_ops.c
@@
-764,6
+764,12
@@
void cmd_newu(char *cmdbuf)
int a;
char username[SIZ];
+ if (config.c_disable_newu) {
+ cprintf("%d Self-service user account creation "
+ "is disabled on this system.\n", ERROR);
+ return;
+ }
+
if (CC->logged_in) {
cprintf("%d Already logged in.\n", ERROR);
return;