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.


git-svn-id: svn://10.0.0.236/trunk@43529 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
terry%mozilla.org
1999-08-19 00:06:01 +00:00
parent 27b70365db
commit 40f8e7a939
4 changed files with 31 additions and 9 deletions

View File

@@ -33,9 +33,11 @@ if (! defined $::FORM{'pwd1'}) {
if (Param('useqacontact')) {
$qacontactpart = ", the current QA Contact";
}
SendSQL("select emailnotification from profiles where login_name = " .
SqlQuote($::COOKIE{'Bugzilla_login'}));
my ($emailnotification) = (FetchSQLData());
my $loginname = SqlQuote($::COOKIE{'Bugzilla_login'});
SendSQL("select emailnotification,realname from profiles where login_name = " .
$loginname);
my ($emailnotification, $realname) = (FetchSQLData());
$realname = value_quote($realname);
print qq{
<form method=post>
<hr>
@@ -47,6 +49,11 @@ if (! defined $::FORM{'pwd1'}) {
<tr>
<td align=right>Re-enter your new password:</td>
<td><input type=password name="pwd2"></td>
</tr>
<tr>
<td align=right>Your real name (optional):</td>
<td><input size=35 name=realname value="$realname"></td>
</tr>
</table>
<hr>
<table>
@@ -122,6 +129,13 @@ Please click <b>Back</b> and try again.\n";
SendSQL("update profiles set emailnotification='$::FORM{'emailnotification'}' where login_name = " .
SqlQuote($::COOKIE{'Bugzilla_login'}));
my $newrealname = $::FORM{'realname'};
if ($newrealname ne "") {
$newrealname = SqlQuote($newrealname);
SendSQL("update profiles set realname=$newrealname where login_name = " .
SqlQuote($::COOKIE{'Bugzilla_login'}));
}
PutHeader("Preferences updated.");
print "