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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
2dff792d
Commit
2dff792d
authored
Sep 28, 1999
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch by holger@holger.om.org (Holger Schurig) -- was displaying header twice in some cases.
parent
92cee2c3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
CGI.pl
CGI.pl
+2
-2
createaccount.cgi
createaccount.cgi
+3
-1
No files found.
CGI.pl
View file @
2dff792d
...
@@ -355,8 +355,6 @@ To use the wonders of bugzilla, you can use the following:
...
@@ -355,8 +355,6 @@ To use the wonders of bugzilla, you can use the following:
print
SENDMAIL
$msg
;
print
SENDMAIL
$msg
;
close
SENDMAIL
;
close
SENDMAIL
;
print
"Content-type: text/html\n\n"
;
PutHeader
(
"Password mailed"
);
print
"The password for the e-mail address\n"
;
print
"The password for the e-mail address\n"
;
print
"$login has been e-mailed to that address.\n"
;
print
"$login has been e-mailed to that address.\n"
;
print
"<p>When the e-mail arrives, you can click <b>Back</b>\n"
;
print
"<p>When the e-mail arrives, you can click <b>Back</b>\n"
;
...
@@ -389,6 +387,8 @@ sub confirm_login {
...
@@ -389,6 +387,8 @@ sub confirm_login {
SqlQuote
(
$enteredlogin
));
SqlQuote
(
$enteredlogin
));
$realpwd
=
FetchOneColumn
();
$realpwd
=
FetchOneColumn
();
}
}
print
"Content-type: text/html\n\n"
;
PutHeader
(
"<H1>Password has been emailed"
);
MailPassword
(
$enteredlogin
,
$realpwd
);
MailPassword
(
$enteredlogin
,
$realpwd
);
exit
;
exit
;
}
}
...
...
createaccount.cgi
View file @
2dff792d
...
@@ -41,19 +41,20 @@ Content-type: text/html
...
@@ -41,19 +41,20 @@ Content-type: text/html
"
;
"
;
PutHeader
(
"Create a new bugzilla account"
);
my
$login
=
$::FORM
{
'login'
};
my
$login
=
$::FORM
{
'login'
};
my
$realname
=
$::FORM
{
'realname'
};
my
$realname
=
$::FORM
{
'realname'
};
if
(
defined
$login
)
{
if
(
defined
$login
)
{
CheckEmailSyntax
(
$login
);
CheckEmailSyntax
(
$login
);
if
(
DBname_to_id
(
$login
)
!=
0
)
{
if
(
DBname_to_id
(
$login
)
!=
0
)
{
PutHeader
(
"Account exists"
);
print
"A bugzilla account for the name <tt>$login</tt> already\n"
;
print
"A bugzilla account for the name <tt>$login</tt> already\n"
;
print
"exists. If you have forgotten the password for it, then\n"
;
print
"exists. If you have forgotten the password for it, then\n"
;
print
"<a href=query.cgi?GoAheadAndLogIn>click here</a> and use\n"
;
print
"<a href=query.cgi?GoAheadAndLogIn>click here</a> and use\n"
;
print
"the <b>E-mail me a password</b> button.\n"
;
print
"the <b>E-mail me a password</b> button.\n"
;
exit
;
exit
;
}
}
PutHeader
(
"Account created"
);
my
$password
=
InsertNewUser
(
$login
,
$realname
);
my
$password
=
InsertNewUser
(
$login
,
$realname
);
MailPassword
(
$login
,
$password
);
MailPassword
(
$login
,
$password
);
print
"A bugzilla account for <tt>$login</tt> has been created. The\n"
;
print
"A bugzilla account for <tt>$login</tt> has been created. The\n"
;
...
@@ -64,6 +65,7 @@ if (defined $login) {
...
@@ -64,6 +65,7 @@ if (defined $login) {
exit
;
exit
;
}
}
PutHeader
(
"Create a new bugzilla account"
);
print
q{
print
q{
To create a bugzilla account, all that you need to do is to enter a
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
legitimate e-mail address. The account will be created, and its
...
...
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