Ticket #3123 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Login Form Improvements

Reported by: Viper007Bond Assigned to: anonymous
Priority: normal Milestone: 2.1
Component: Administration Version: 2.1
Severity: minor Keywords: login form has-patch commit
Cc:

Description

As mentioned on wp-hackers. Please note that I just went over this with a fine tooth comb, but it still needs a little testing and double checking just to be sure. ;)

Demo: http://test.viper007bond.com/wordpress-latest/wp-login.php

What's new (oh where to begin?!):

* wp-register.php moved to wp-login.php?action=register and redirect added in wp-register.php

* Registration page is currently only like half styled in the SVN. This has been fixed.

* Multiple errors can now be displayed for each form

* Bottom links made to look pretty (they looked bad if registration was enabled)

* Fixed some display issues in IE

* Made the WP logo much easier to click in FF (it was all funky before)

* Removal of all references to wp_die(). All errors and messages (nearly) are now reported via the standard error area.

And the most important:

* Tons of new hooks and filters

You can now restyle the login pages however you want due to the addition of a hook into the <head>.

Each form also now has a hook in it so that you add new input fields (say their sex or birthday or even a CAPTCHA). There's also of course a new hook for each that allows you to handle the $_POST and then set an error if your field is left blank, not filled in correctly, etc. This error will be displayed like any other error.

For example, check out this example which was created via a very simple plugin:

http://img215.imageshack.us/img215/5851/wpregistercolorjt7.png

Attachments

improvedlogin.patch (31.3 kB) - added by Viper007Bond on 09/11/06 06:25:06.
improvedlogin2.patch (31.3 kB) - added by Viper007Bond on 09/12/06 05:22:44.
WP version number added to .css call
improvedlogin3.patch (31.2 kB) - added by Viper007Bond on 10/04/06 07:45:53.
This should be commit worthy
revert_login_post_vars.diff (1.4 kB) - added by markjaquith on 10/07/06 02:59:28.
Revert login post vars to "pwd" and "log", per Matt's request

Change History

09/11/06 04:42:06 changed by Viper007Bond

Oh, and the translation people are probably going to hate me for this patch, lol. I tried to keep as many of the existing strings as possible, but I did have to make some new strings. Sorry guys.

09/11/06 06:25:06 changed by Viper007Bond

  • attachment improvedlogin.patch added.

09/12/06 04:03:54 changed by shorty114

I like it. Especially now that the registration pages have been styled... looked a little weird before. Nice job.

09/12/06 05:22:44 changed by Viper007Bond

  • attachment improvedlogin2.patch added.

WP version number added to .css call

09/29/06 19:16:43 changed by Nazgul

  • keywords set to has-patch.

I've been playing with this for some time now and I like it.

10/02/06 12:27:34 changed by Sewar

  • keywords changed from has-patch to login form has-patch commit.
  • priority changed from low to normal.

+1 for this, Why wait more?

10/04/06 06:31:15 changed by Viper007Bond

A few commits have broken the styling of this a bit. Updated patch coming soon.

10/04/06 07:45:53 changed by Viper007Bond

  • attachment improvedlogin3.patch added.

This should be commit worthy

10/04/06 16:47:53 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [4339]) Improved login from Viper007Bond. fixes #3123

10/07/06 01:22:19 changed by matt

  • status changed from closed to reopened.
  • resolution deleted.

This harmfully changes the POST variable names used from log and pwd to something else.

Please revert that part.

10/07/06 02:59:28 changed by markjaquith

  • attachment revert_login_post_vars.diff added.

Revert login post vars to "pwd" and "log", per Matt's request

10/07/06 03:02:43 changed by markjaquith

  • status changed from reopened to closed.
  • resolution set to fixed.

(In [4354]) revert login $_POST vars change from [4339]. fixes #3123

10/07/06 03:54:01 changed by Viper007Bond

Whoops, was trying to improve the names to better match what they were and I didn't realize it'd affect anything. My apologies.

10/07/06 06:57:39 changed by matt

No worries, I agree your names are better it's just the old ones are built into anything that tried to tie into the login system.