summaryrefslogtreecommitdiffstats
path: root/createaccount.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-08-19 09:06:00 +0200
committerterry%mozilla.org <>1999-08-19 09:06:00 +0200
commit1d971ce0a409d7d324c742cd54a0d67ca7132d55 (patch)
treece18375e5fd0a6d5ff3b7c187b36fc4f8dc80003 /createaccount.cgi
parent63dd4a061b87dcd1ccad7b8bc6b23721e09f2fef (diff)
downloadbugzilla-1d971ce0a409d7d324c742cd54a0d67ca7132d55.tar.gz
bugzilla-1d971ce0a409d7d324c742cd54a0d67ca7132d55.tar.xz
Patch by Chris Baldwin <chris.baldwin@siara.com> -- allow optional
entry of the user's realname. Note that nothing actually makes use of this info at present.
Diffstat (limited to 'createaccount.cgi')
-rwxr-xr-xcreateaccount.cgi10
1 files changed, 8 insertions, 2 deletions
diff --git a/createaccount.cgi b/createaccount.cgi
index 3d1fa4c58..cc9bdd018 100755
--- a/createaccount.cgi
+++ b/createaccount.cgi
@@ -44,6 +44,7 @@ Content-type: text/html
PutHeader("Create a new bugzilla account");
my $login = $::FORM{'login'};
+my $realname = $::FORM{'realname'};
if (defined $login) {
CheckEmailSyntax($login);
if (DBname_to_id($login) != 0) {
@@ -53,7 +54,7 @@ if (defined $login) {
print "the <b>E-mail me a password</b> button.\n";
exit;
}
- my $password = InsertNewUser($login);
+ my $password = InsertNewUser($login, $realname);
MailPassword($login, $password);
print "A bugzilla account for <tt>$login</tt> has been created. The\n";
print "password has been e-mailed to that address. When it is\n";
@@ -66,7 +67,8 @@ if (defined $login) {
print q{
To create a bugzilla account, all that you need to do is to enter a
legitimate e-mail address. The account will be created, and its
-password will be mailed to you.
+password will be mailed to you. Optionally you may enter your real name
+as well.
<FORM method=get>
<table>
@@ -74,6 +76,10 @@ password will be mailed to you.
<td align=right><b>E-mail address:</b></td>
<td><input size=35 name=login></td>
</tr>
+<tr>
+<td align=right><b>Real name:</b></td>
+<td><input size=35 name=realname></td>
+</tr>
</table>
<input type=submit>
};