BuddyDev

Search

Replies

  • Participant
    Level: Guru
    Posts: 907
    This reply has been marked as private.
  • Participant
    Level: Guru
    Posts: 907

    Hello Ravi,

    This problem is now solved the updated code you provided solved the space problem. All my users can now login properly.

    Thank you very much, i’m really grateful

  • Participant
    Level: Guru
    Posts: 907

    After further investigations i’ve found the culprit code below

     /**
     * Email login support for bp-branded-login plugin
     */
    add_filter( 'wp_authenticate_user', function( $user ) {
    
    	if ( isset( $_POST['log'] ) && ! is_email( $_POST['log'] ) ) {
    		return new WP_Error( 'invalid_email' );
    	}
    
    	return $user;
    }, 10 ); 

    Please can this be improved to prevent invalidation of email addresses with spaces at the back

    Thanks

  • Participant
    Level: Guru
    Posts: 907

    I also noticed that this email login issue also occured in the default wordpress login page @ (wp-login.php) after deactivating the branded login plugin.

    Now will it be possible to validate logins with emails and usernames that have spaces at the back in the login form

  • Participant
    Level: Guru
    Posts: 907
    This reply has been marked as private.
  • Participant
    Level: Guru
    Posts: 907
    Tosin on in reply to: Change BuddyPress Force Profile Photo plugin redirection #32286

    I just created a new user account while the leira avatar plugin is active and profile completion plugin is showing the message that (Profile completed successfully.) when profile photo has not been uploaded.

    Profile Completion plugin is still taking the letter avatar as a user uploaded avatar for newly registered users.

  • Participant
    Level: Guru
    Posts: 907

    I just deactivated all plugins and noticed that its a login problem and not registration issue wordpress is not allowing logins with spaces after the email address. The error message (invalid email) is being displayed. Will it be possible to display a custom error message in the login form when a user mistakenly adds a space after their email address during login. The custom error message should be (Sorry, this email is invalid. Email addresses cannot contain spaces.) Since the space is invisible the user still thinks that their email address is correct but this custom error message will point out the cause of login failure.

    I am also using the branded login plugin

  • Participant
    Level: Guru
    Posts: 907

    Please note that i’m not reffering to spaces in between the email address but after the email address for example

    abcdef@gmail.com&nbsp

    &nbsp refers to the space added

    This problem mainly occurs when a user is registering on a mobile phone and add their email address from google saved email address suggestion after selecting the suggested email a space is added automatically without the user realising this and buddypress accepts the registration with the space after the email.

  • Participant
    Level: Guru
    Posts: 907

    Also will it be possible to prevent adding of spaces in the email field with the branded login plugin

  • Participant
    Level: Guru
    Posts: 907
    Tosin on in reply to: Change BuddyPress Force Profile Photo plugin redirection #32252

    The plugin author has replied this is his statement below

    (( The buddypress core function “bp_get_user_has_avatar” is the function you are looking for. If this function returns false and you have Leira Letter Avatar plugin active them it means user is using a letter avatar.
    This method is used by BuddyPress Profile Completion core functionality and i added support for it in release 1.2.1.
    In the other hand, I was checking everything during the weekend to determine what could be happening with your site. What i think is happening is as follows: Buddypress Profile Completion saves a metatag once a user profile is complete, at the moment you installed Leira Letter Avatar, there was no compatibility between both plugins, so Profile Completion was taking the letter avatar as a user uploaded avatar, therefore, user metatag was set as well. A solution it could work is basically delete manually this metatag for all users, running a simple SQL script (dont worry Profile Completion will re add this metatag automatically) and the other option is to create a simple function to bypass this metatag to tell Profile completion if user really have or not uploaded an avatar, i could help you with it.
    I hope it helps, let me know if you have any updates. ))

    https://wordpress.org/support/topic/buddypress-profile-completion-plugin-support/#post-13232079