I've been using WordPress for a couple of years, and have intended to learn how to make plugins properly for just about as long. I'm not quite there yet though, since whenever anything comes along which requires some form of thought and understanding, I convince myself that it doesn't really need to be done at all and discard the idea. I can, however, spend 10 minutes editing a few php files and that's what this hack involves. In the coming days and weeks, I intend to have a real attempt at making a WordPress plugin properly, so I'll try to make a couple of simple ones and see if it is possible to implement the below hack as a plugin.
When someone registers on a WordPress site, they ordinarily have to enter a username and e-mail address, then WordPress generates a password and e-mails it to them. This hack allows the user to choose their own password when they register, rather than changing it later. Of course, this means that they don't have to give a valid e-mail address anymore, since they needed one to receive their password. In addition, some may argue that letting users choose their own password is a security flaw, but if they can change their password anyway then I don't see how that is so different, and it doesn't really concern me anyway since I'm the only one who will have access to post on this blog.
When I wanted to do this, I Googled but all I found was an out of date file following from a discussion on the WordPress forums. My attempt involves editing wp-login.php directly, basically copying lines from some other files which dealt with the user changing their password. Since this involves editing a core WordPress file, it is probably not a good idea and could cause problems, but it does the job for me. Also, whenever you upgrade WordPress, wp-login.php will be overwritten, and you'll have to make the changes again. The changes described are for WordPress 2.2.
Continue reading 'WordPress Hack: Users Choose Their Own Password'