[wp-hackers] Hacking Registration To Allow Users To Specify Passwords

Alex Andrews awgandrews at gmail.com
Fri Aug 31 06:43:33 GMT 2007


Worked out (this seems to be a double post infested thread!) the first
bit. I hook into pre_user_pass, ignoring the inputted password and
setting it to an additional field the user specifies.

Still leaves the second problemo. Thinking about it, I could just put
another $action bit in the case, without much problem. Or is there a
hook for this...

Alex

On 31/08/2007, Alex Andrews <awgandrews at gmail.com> wrote:
> Thanks for this. So basically I now use add_action to hook into
> register_post, writing a function that sets the password to an
> additional user field. How would I suppress the e-mail? Is this the
> correct way to do it?
>
>  Would the second thing I asked for (user clicks a link and confirms
> the account) involve whacking another "switch" in wp-login.php to note
> when a randomly generated string confirms the e-mail. This would need
> to add another field to wp_users which would potentially hash up
> future upgrades, no?
>
> Is all of this in the latest wordpress or is it in the svn only?
>
> Alex
>
> On 31/08/2007, Viper007Bond <viper at viper007bond.com> wrote:
> > Ugh, sorry to triple post, but here's the ticket and a patch:
> > http://trac.wordpress.org/ticket/4879
> >
> >
> > On 8/30/07, Viper007Bond <viper at viper007bond.com> wrote:
> > >
> > > Actually, you could do it now by updating the user's account after it's
> > > been created and changing the password to the one they entered. The only
> > > drawback however is that they'd get an e-mail with their random password in
> > > it.
> > >
> > > On 8/30/07, Viper007Bond <viper at viper007bond.com> wrote:
> > > >
> > > > It'd be easy to change the form. I worked it over a few months ago and
> > > > added hooks galore to the thing. You should be able to pretty much anything
> > > > with it.
> > > >
> > > > Example plugin:
> > > > http://files.viper007bond.com/wordpress/loginformexample.phps
> > > >
> > > > Then it's just a matter of intercepting the field's submission (there's
> > > > a hook for that) and using it to create a new user account. However, it
> > > > doesn't there's any place to hook in and change the password to what the
> > > > user specified, either in wp-login.php (where the password is generated)
> > > > or in wp_insert_user() where the account is actually created.
> > > >
> > > > I'll go make a ticket. :)
> > > >
> > > > On 8/30/07, Alex Andrews <awgandrews at gmail.com> wrote:
> > > > >
> > > > > Hello again all.
> > > > >
> > > > > What I would really like to do is slightly tweak the registration
> > > > > process. Instead of receiving their password in an e-mail, as is
> > > > > common to many sites, they will register their e-mail and give a
> > > > > password, then have to "confirm" this e-mail as being live at some
> > > > > point in, say, the next few hours.
> > > > >
> > > > > Is this possible? Is this going to require a major re-write or are
> > > > > there things to hook into?
> > > > >
> > > > > Regards
> > > > >
> > > > > Alex
> > > > > _______________________________________________
> > > > > wp-hackers mailing list
> > > > > wp-hackers at lists.automattic.com
> > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Viper007Bond | http://www.viper007bond.com/
> > >
> > >
> > >
> > >
> > > --
> > > Viper007Bond | http://www.viper007bond.com/
> > >
> >
> >
> >
> > --
> > Viper007Bond | http://www.viper007bond.com/
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>


More information about the wp-hackers mailing list