From 0892f4f9c3b87189326f93db26237a01b6e7c1ef Mon Sep 17 00:00:00 2001 From: Russ Fish <fish@flux.utah.edu> Date: Tue, 13 Feb 2007 22:37:48 +0000 Subject: [PATCH] Found in release testing: shouldn't require wikiname field if no WIKISUPPORT is configured. wikiname must be optional in that case or users can't be created. --- account/newuser.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/account/newuser.in b/account/newuser.in index 52d5030dfc..4294cfffbe 100644 --- a/account/newuser.in +++ b/account/newuser.in @@ -143,8 +143,7 @@ my %required = ("name" => "usr_name", "phone" => "usr_phone", "title" => "usr_title", "affiliation" => "usr_affil", - "password" => undef, - "wikiname" => "wikiname"); + "password" => undef); my %optional = ("login" => "uid", "address2" => "usr_addr2", @@ -152,6 +151,8 @@ my %optional = ("login" => "uid", "shell" => "usr_shell", "pubkey" => undef); +($WIKISUPPORT ? \%required : \%optional)->{"wikiname"} = "wikiname"; + # # Must wrap the parser in eval since it exits on error. # -- GitLab