From 1d971ce0a409d7d324c742cd54a0d67ca7132d55 Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" <> Date: Thu, 19 Aug 1999 07:06:00 +0000 Subject: Patch by Chris Baldwin -- allow optional entry of the user's realname. Note that nothing actually makes use of this info at present. --- changepassword.cgi | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'changepassword.cgi') diff --git a/changepassword.cgi b/changepassword.cgi index da9429b8a..66dff014b 100755 --- a/changepassword.cgi +++ b/changepassword.cgi @@ -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{

@@ -47,6 +49,11 @@ if (! defined $::FORM{'pwd1'}) { Re-enter your new password: + + +Your real name (optional): + +
@@ -122,6 +129,13 @@ Please click Back 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 " -- cgit v1.2.3-24-g4f1b