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
fc6da409
Commit
fc6da409
authored
May 08, 1999
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oops. Accounts created via the "createaccount.cgi" page were not
getting their password emailed to them.
parent
08c985ad
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
29 deletions
+35
-29
CGI.pl
CGI.pl
+33
-28
createaccount.cgi
createaccount.cgi
+2
-1
No files found.
CGI.pl
View file @
fc6da409
...
...
@@ -325,31 +325,8 @@ sub CheckEmailSyntax {
sub
confirm_login
{
my
(
$nexturl
)
=
(
@_
);
# Uncommenting the next line can help debugging...
# print "Content-type: text/plain\n\n";
ConnectToDatabase
();
if
(
defined
$::FORM
{
"Bugzilla_login"
}
&&
defined
$::FORM
{
"Bugzilla_password"
})
{
my
$enteredlogin
=
$::FORM
{
"Bugzilla_login"
};
my
$enteredpwd
=
$::FORM
{
"Bugzilla_password"
};
CheckEmailSyntax
(
$enteredlogin
);
my
$realcryptpwd
=
PasswordForLogin
(
$::FORM
{
"Bugzilla_login"
});
if
(
defined
$::FORM
{
"PleaseMailAPassword"
})
{
my
$realpwd
;
if
(
$realcryptpwd
eq
""
)
{
$realpwd
=
InsertNewUser
(
$enteredlogin
);
}
else
{
SendSQL
(
"select password from profiles where login_name = "
.
SqlQuote
(
$enteredlogin
));
$realpwd
=
FetchOneColumn
();
}
sub
MailPassword
{
my
(
$login
,
$password
)
=
(
@_
);
my
$urlbase
=
Param
(
"urlbase"
);
my
$template
=
"From: bugzilla-daemon
To: %s
...
...
@@ -366,8 +343,7 @@ To use the wonders of bugzilla, you can use the following:
(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
,
$enteredlogin
,
$enteredlogin
,
$realpwd
);
my
$msg
=
sprintf
(
$template
,
$login
,
$login
,
$password
);
open
SENDMAIL
,
"|/usr/lib/sendmail -t"
;
print
SENDMAIL
$msg
;
...
...
@@ -376,9 +352,38 @@ To use the wonders of bugzilla, you can use the following:
print
"Content-type: text/html\n\n"
;
print
"<H1>Password has been emailed.</H1>\n"
;
print
"The password for the e-mail address\n"
;
print
"$entered
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
"and enter your password in the form there.\n"
;
}
sub
confirm_login
{
my
(
$nexturl
)
=
(
@_
);
# Uncommenting the next line can help debugging...
# print "Content-type: text/plain\n\n";
ConnectToDatabase
();
if
(
defined
$::FORM
{
"Bugzilla_login"
}
&&
defined
$::FORM
{
"Bugzilla_password"
})
{
my
$enteredlogin
=
$::FORM
{
"Bugzilla_login"
};
my
$enteredpwd
=
$::FORM
{
"Bugzilla_password"
};
CheckEmailSyntax
(
$enteredlogin
);
my
$realcryptpwd
=
PasswordForLogin
(
$::FORM
{
"Bugzilla_login"
});
if
(
defined
$::FORM
{
"PleaseMailAPassword"
})
{
my
$realpwd
;
if
(
$realcryptpwd
eq
""
)
{
$realpwd
=
InsertNewUser
(
$enteredlogin
);
}
else
{
SendSQL
(
"select password from profiles where login_name = "
.
SqlQuote
(
$enteredlogin
));
$realpwd
=
FetchOneColumn
();
}
MailPassword
(
$enteredlogin
,
$realpwd
);
exit
;
}
...
...
createaccount.cgi
View file @
fc6da409
...
...
@@ -53,7 +53,8 @@ if (defined $login) {
print
"the <b>E-mail me a password</b> button.\n"
;
exit
;
}
DBNameToIdAndCheck
(
$login
,
1
);
my
$password
=
InsertNewUser
(
$login
);
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"
;
print
"received, you may <a href=query.cgi?GoAheadAndLogIn>click\n"
;
...
...
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