Closed Bug 294778 Opened 20 years ago Closed 20 years ago

Unable to create new accounts when requirelogin is on

Categories

(Bugzilla :: User Accounts, defect)

2.18.1
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: dazzieb, Assigned: LpSolit)

References

Details

Attachments

(2 files, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

I have set up a new 1.18.1 Bugzilla server, but no-one is allowed to create a
new account.

I have managed to get around this, by changing createaccount.cgi and commenting
out the BugZilla->login(); line


# Just in case someone already has an account, let them get the correct footer
# on an error message.  The user is logged out just before the account is
# actually created.
#Bugzilla->login();


Reproducible: Always

Steps to Reproduce:
1. From main screen, click New Account
2. Click create a new account


Actual Results:  
Nothing happened

Expected Results:  
I would expect the create a new account screen to appear
Version: unspecified → 2.18.1
I cannot reproduce this bug using 2.18.1. I'm able to create a new account. I
received an email with my password in it and I could successfully use it to log
in. Marking WFM!

Darren, what do you mean by "Nothing happened"?

If you can give me more information, we could reopen the bug.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
When I say that nothing happened, what I mean is I expected the screen to change
to the one where I enter an email address and real name, but this did not
happen; the screen did not change in any way.

One oddity of my installation is that we have several distinct bugzilla systems
running on the same linux server.
After having entered an email address and a name, you should get this screen:

Account Created


A new account, loobard@bugzilla.org, has been created and a randomly-generated
password has been e-mailed to that address.

When the e-mail arrives, log in here.
Oops sorry, you meant that the page to enter your email address does not
appear!? I was thinking about the next step already. ;)
Yes, that is correct.  The page that asks you to enter your email address and
real name does not appear.
Okay, maybe I got it! Darren, is your 'requirelogin' param turned on (see
editparams.cgi near the bottom of the page)?

If yes, the problem is that you need to be logged in in order to create an
account. This is clearly a bug! :)
Reopening per comment 6.
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
Summary: Unable to create new accounts → Unable to create new accounts when requirelogin is on
Attached patch patch for 2.19.3, v1 (obsolete) — Splinter Review
Assignee: user-accounts → LpSolit
Status: UNCONFIRMED → ASSIGNED
Attachment #184002 - Flags: review?(wurblzap)
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → Bugzilla 2.18
Attached patch patch for 2.18.2, v1 (obsolete) — Splinter Review
Attachment #184003 - Flags: review?(wurblzap)
Flags: blocking2.20?
Flags: blocking2.18.2?
Comment on attachment 184002 [details] [diff] [review]
patch for 2.19.3, v1

Tested; works.

>+use Bugzilla::Constants;

Nit: this should be up where use Bugzilla::User lives.
Attachment #184002 - Flags: review?(wurblzap) → review+
Comment on attachment 184003 [details] [diff] [review]
patch for 2.18.2, v1

Same nit here. Can be fixed on checkin, I'd say.
Attachment #184003 - Flags: review?(wurblzap) → review+
Flags: approval?
Flags: approval2.18?
Nit fixed
Attachment #184002 - Attachment is obsolete: true
Attachment #184004 - Flags: review?(wurblzap)
Attachment #184003 - Attachment is obsolete: true
Attachment #184005 - Flags: review?(wurblzap)
Attachment #184004 - Flags: review?(wurblzap) → review+
Attachment #184005 - Flags: review?(wurblzap) → review+
Yes, requirelogin is on.

I'll apply the path and let you know how I get on.
Patch works great, thanks.
Flags: blocking2.20?
Flags: blocking2.20+
Flags: blocking2.18.2?
Flags: blocking2.18.2+
Flags: approval?
Flags: approval2.18?
Flags: approval2.18+
Flags: approval+
Tip:

Checking in createaccount.cgi;
/cvsroot/mozilla/webtools/bugzilla/createaccount.cgi,v  <--  createaccount.cgi
new revision: 1.39; previous revision: 1.38
done

2.18.1:

Checking in createaccount.cgi;
/cvsroot/mozilla/webtools/bugzilla/createaccount.cgi,v  <--  createaccount.cgi
new revision: 1.33.2.2; previous revision: 1.33.2.1
done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
*** Bug 303070 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: