Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#2910 closed enhancement (duplicate)

Allow user to choose login name and password during setup

Reported by: ketsugi Owned by: darkfate
Priority: normal Milestone:
Component: Administration Version: 2.0.4
Severity: normal Keywords: bg|has-patch
Cc: Focuses:

Description

When running install.php, the default user's login name is set to "admin" and the password to a random string. Why not allow the user to type a login name and choose a password right at the beginning, negating the necessity for the user to immediately login and change the password. This would also mean that there will be fewer (eventually) Wordpress installs out there with an "admin" account with admin privileges.

Attachments (2)

install.php.diff (3.2 KB ) - added by darkfate 20 years ago.
allow user the select username
install.php.2.diff (3.2 KB ) - added by darkfate 20 years ago.
forgot to add a semicolon

Download all attachments as: .zip

Change History (8)

#1 @ketsugi
20 years ago

...Or you could ignore everything I said about the password, since it's already covered in #2870, and let this ticket be just about the login name.

@darkfate
20 years ago

allow user the select username

#2 @darkfate
20 years ago

  • Keywords bg|has-patch added
  • Milestone2.0.4
  • Owner changed from anonymous to darkfate
  • Status newassigned
  • Type defectenhancement

#3 @darkfate
20 years ago

I figured it would be safer to keep the password randomized. It produces a strong password and some people's passwords tend to not be that secure. This gives wordpress security by default.

#4 @darkfate
20 years ago

I guess we want to sanitize the username to be safe. I would use something like:

if(!eregi("^([0-9 a-z])+$", $admin_username)) {};

Or should it use the functions in registration_functions.php like on lines 38 and 39.

@darkfate
20 years ago

forgot to add a semicolon

#5 @darkfate
20 years ago

  • Resolutionduplicate
  • Status assignedclosed

See bug #2870 for this patch plus some added stuff.

#6 @(none)
20 years ago

  • Milestone 2.0.4

Milestone 2.0.4 deleted

Note: See TracTickets for help on using tickets.