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.
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:
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
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/
is working on a reply...
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