• Resolved bestprogrammerintheworld

    (@bestprogrammerintheworld)


    Hello

    I’m using the free version of PB and it works great. When a username already exists in the database, it doesn’t get added into the database and the user gets a warning. That would be the ordinary scenario….

    BUT I would like to UPDATE the affected user (if user with that username already exists) user instead of inserting. How would I achieve this without modifiying the plugins code!?

    http://wordpress.org/plugins/profile-builder/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor barinagabriel

    (@barinagabriel)

    Hello,

    I *think* that this might be able to achieve using the built-in filters, but this requires quite a lot of work, coding knowledge, and can also backfire on you.

    The question is, why would you want to overwrite an existing user? In theory anyone can come and overwrite another user’s info, and thus preventing that person to log in; maybe if you provide a little bit more info, so that I can understand better…

    Don’t get me wrong, I would happily help you with some pointers, just think this through!

    Regards,
    Gabriel

    Thread Starter bestprogrammerintheworld

    (@bestprogrammerintheworld)

    Hello Gabriel!

    I was coding customized membership-functions with related course(s) to each user. Every term users has to signup for courses and my initial thought was to simply update course(s) if the same user was signing up again…

    BUT You’re absolutely right!! I’ve did a lot of thinking about this and I totally agree. Sometimes you simply think to much about the user-friendliness without concering about security.

    My solution: Instead I simply create a new username for each term (like {term}_{first name}_{last_name}. This way I can also know what users has been on which courses at which term.

    Thanks for pointing me into right direction! 🙂

    Plugin Contributor barinagabriel

    (@barinagabriel)

    Hey there,

    think nothing of it! I am glad that you are confident of what you need to do, and are heading in the right direction.

    Also, should you still have questions related to PB, let me know!

    Regards,
    Gabriel

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Update user in front end registration when user exists’ is closed to new replies.