Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
e5f9f7e1
Commit
e5f9f7e1
authored
Mar 21, 2007
by
Robert Ricci
Browse files
Don't require wiki-only users to fill out all fields.
parent
b46c5262
Changes
1
Show whitespace changes
Inline
Side-by-side
account/newuser.in
View file @
e5f9f7e1
...
...
@@ -132,17 +132,10 @@ else {
#
# These are the fields that we allow to come in from the XMLfile.
# This first set is required by all types of users
#
my
%required
=
("
name
"
=>
"
usr_name
",
"
email
"
=>
"
usr_email
",
"
address
"
=>
"
usr_addr
",
"
city
"
=>
"
usr_city
",
"
state
"
=>
"
usr_state
",
"
zip
"
=>
"
usr_zip
",
"
country
"
=>
"
usr_country
",
"
phone
"
=>
"
usr_phone
",
"
title
"
=>
"
usr_title
",
"
affiliation
"
=>
"
usr_affil
",
"
password
"
=>
undef
);
my
%optional
=
("
login
"
=>
"
uid
",
...
...
@@ -151,6 +144,23 @@ my %optional = ("login" => "uid",
"
shell
"
=>
"
usr_shell
",
"
pubkey
"
=>
undef
);
#
# These are required for most users, but are optional for wiki-only users
#
my
%usually_required
=
("
address
"
=>
"
usr_addr
",
"
city
"
=>
"
usr_city
",
"
state
"
=>
"
usr_state
",
"
zip
"
=>
"
usr_zip
",
"
country
"
=>
"
usr_country
",
"
phone
"
=>
"
usr_phone
",
"
title
"
=>
"
usr_title
",
"
affiliation
"
=>
"
usr_affil
");
if
(
$type
eq
"
wikionly
")
{
%optional
=
(
%optional
,
%usually_required
);
}
else
{
%required
=
(
%required
,
%usually_required
);
}
(
$WIKISUPPORT
?
\
%required
:
\
%optional
)
->
{"
wikiname
"}
=
"
wikiname
";
#
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment