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
0447f163
Commit
0447f163
authored
Oct 14, 1998
by
terry%netscape.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug 1083 -- was some stupid problems with creating a new account.
parent
724bc93a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
CGI.pl
CGI.pl
+8
-3
No files found.
CGI.pl
View file @
0447f163
...
@@ -224,7 +224,11 @@ sub PasswordForLogin {
...
@@ -224,7 +224,11 @@ sub PasswordForLogin {
my
(
$login
)
=
(
@_
);
my
(
$login
)
=
(
@_
);
SendSQL
(
"select cryptpassword from profiles where login_name = "
.
SendSQL
(
"select cryptpassword from profiles where login_name = "
.
SqlQuote
(
$login
));
SqlQuote
(
$login
));
return
FetchOneColumn
();
my
$result
=
FetchOneColumn
();
if
(
!
defined
$result
)
{
$result
=
""
;
}
return
$result
;
}
}
sub
confirm_login
{
sub
confirm_login
{
...
@@ -253,7 +257,6 @@ sub confirm_login {
...
@@ -253,7 +257,6 @@ sub confirm_login {
exit
;
exit
;
}
}
my
$realcryptpwd
=
PasswordForLogin
(
$::FORM
{
"Bugzilla_login"
});
my
$realcryptpwd
=
PasswordForLogin
(
$::FORM
{
"Bugzilla_login"
});
my
$enteredcryptpwd
=
crypt
(
$enteredpwd
,
substr
(
$realcryptpwd
,
0
,
2
));
if
(
defined
$::FORM
{
"PleaseMailAPassword"
})
{
if
(
defined
$::FORM
{
"PleaseMailAPassword"
})
{
my
$realpwd
;
my
$realpwd
;
...
@@ -264,6 +267,7 @@ sub confirm_login {
...
@@ -264,6 +267,7 @@ sub confirm_login {
SqlQuote
(
$enteredlogin
));
SqlQuote
(
$enteredlogin
));
$realpwd
=
FetchOneColumn
();
$realpwd
=
FetchOneColumn
();
}
}
my
$urlbase
=
Param
(
"urlbase"
);
my
$template
=
"From: bugzilla-daemon
my
$template
=
"From: bugzilla-daemon
To: %s
To: %s
Subject: Your bugzilla password.
Subject: Your bugzilla password.
...
@@ -274,7 +278,7 @@ To use the wonders of bugzilla, you can use the following:
...
@@ -274,7 +278,7 @@ To use the wonders of bugzilla, you can use the following:
Password: %s
Password: %s
To change your password, go to:
To change your password, go to:
[Param urlbase]
changepassword.cgi
${urlbase}
changepassword.cgi
(Your bugzilla and CVS password, if any, are not currently synchronized.
(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.)
Top hackers are working around the clock to fix this, as you read this.)
...
@@ -295,6 +299,7 @@ To use the wonders of bugzilla, you can use the following:
...
@@ -295,6 +299,7 @@ To use the wonders of bugzilla, you can use the following:
exit
;
exit
;
}
}
my
$enteredcryptpwd
=
crypt
(
$enteredpwd
,
substr
(
$realcryptpwd
,
0
,
2
));
if
(
$realcryptpwd
eq
""
||
$enteredcryptpwd
ne
$realcryptpwd
)
{
if
(
$realcryptpwd
eq
""
||
$enteredcryptpwd
ne
$realcryptpwd
)
{
print
"Content-type: text/html\n\n"
;
print
"Content-type: text/html\n\n"
;
print
"<H1>Login failed.</H1>\n"
;
print
"<H1>Login failed.</H1>\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