Re: User E-Mail Address as Authentification when Signing up
It all finally works now – THANK YOU VERY MUCH.
I ended up using a completly random HASH for the UserName since I was not feeling safe using your JavaScript.
This feature should be put in one of the future Releases of BuddyPress since indeed the concept of using Usernames to Login is old and with Features like Gravatar Support, the site itself should use email as the main auth form.
Just for completion so somebody might want to do the same thing:
I modified the register.php in registration subfolder like this
.
.
.
<!– Fool Registration that the Username is a Random Generated HASH –>
<input type=”hidden” name=”signup_username” id=”signup_username” value=”<?php echo sha1( uniqid( mt_rand(), true ) . time() ) ?>” />
<label for=”signup_email”><?php _e( ‘Email Address’, ‘buddypress’ ) ?> <?php _e( ‘(required)’, ‘buddypress’ ) ?></label>
<?php do_action( ‘bp_signup_email_errors’ ) ?>
<input type=”text” name=”signup_email” id=”signup_email” value=”<?php bp_signup_email_value() ?>” />
.
.
.
and used Beau Leben’s WP Email Plugin