Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David Amri 214 posts 740 karma points
    Mar 30, 2017 @ 06:12
    David Amri
    0

    Member registration with external database validation

    Greetings,

    We need to set up a frontend membership registration solution that checks for a id from a external database in order to validate and give the user the rights to create a membership.

    So the idea is to let members fill in Name, E-mail and a "Customer id" field. The third "Customer id" field will be checked and matched from an external database if the member is a valid member and allowed to proceed with the registration.

    If this is possible, could someone please just help me in the right direction.

    Cheers

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Mar 30, 2017 @ 08:13
    Dan Diplo
    2

    It's certainly possible, but it's a bit too complicated to explain in a forum post.

    But the "ingredients" you will probably need are:

    A SurfaceController to use with your form - see https://our.umbraco.org/Documentation/Reference/Templating/Mvc/Forms and https://our.umbraco.org/Documentation/Reference/Routing/surface-controllers

    So you'd need your form to post your member fields and then in the controller you'd have a method that checks the "Customer ID" field and returns true or false. If true you could then create the new member programmatically using the Umbraco member service:

    https://our.umbraco.org/documentation/Reference/Management/Services/MemberService

    You can also use the MembershipHelper class to reference existing members - https://our.umbraco.org/documentation/Reference/Querying/MemberShipHelper/

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

    Continue discussion

Please Sign in or register to post replies