Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
310d90b7
Commit
310d90b7
authored
Feb 08, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the "mail a new password" text be a param.
parent
88d99924
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
17 deletions
+27
-17
CGI.pl
CGI.pl
+5
-17
defparams.pl
defparams.pl
+22
-0
No files found.
CGI.pl
View file @
310d90b7
...
...
@@ -578,23 +578,11 @@ sub CheckEmailSyntax {
sub
MailPassword
{
my
(
$login
,
$password
)
=
(
@_
);
my
$urlbase
=
Param
(
"urlbase"
);
my
$template
=
"From: bugzilla-daemon
To: %s
Subject: Your bugzilla password.
To use the wonders of bugzilla, you can use the following:
E-mail address: %s
Password: %s
To change your password, go to:
${urlbase}userprefs.cgi
(Your bugzilla and CVS password, if any, are not currently synchronized.
Top hackers are working around the clock to fix this, as you read this.)
"
;
my
$msg
=
sprintf
(
$template
,
$login
.
Param
(
'emailsuffix'
),
$login
,
$password
);
my
$template
=
Param
(
"passwordmail"
);
my
$msg
=
PerformSubsts
(
$template
,
{
"mailaddress"
=>
$login
.
Param
(
'emailsuffix'
),
"login"
=>
$login
,
"password"
=>
$password
});
open
SENDMAIL
,
"|/usr/lib/sendmail -t"
;
print
SENDMAIL
$msg
;
...
...
defparams.pl
View file @
310d90b7
...
...
@@ -226,6 +226,28 @@ DefParam("warnfooterhtml",
"</font>"
);
DefParam
(
"passwordmail"
,
q{The email that gets sent to people to tell them their password. Within
this text, %mailaddress% gets replaced by the person's email address,
%login% gets replaced by the person's login (usually the same thing), and
%password% gets replaced by their password. %<i>anythingelse</i>% gets
replaced by the definition of that parameter (as defined on this page).}
,
"l"
,
q{From: bugzilla-daemon
To: %mailaddress%
Subject: Your Bugzilla password.
To use the wonders of Bugzilla, you can use the following:
E-mail address: %login%
Password: %password%
To change your password, go to:
%urlbase%userprefs.cgi
}
);
DefParam
(
"changedmail"
,
q{The email that gets sent to people when a bug changes. Within this
text, %to% gets replaced by the assigned-to and reported-by people,
...
...
Write
Preview
Markdown
is supported
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