Commit 0892f4f9 authored by Russ Fish's avatar Russ Fish

Found in release testing: shouldn't require wikiname field if no WIKISUPPORT...

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.
parent 53d2c25f
......@@ -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.
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment