cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
samshaw
New Member

Re : Email confirmation post registration

Hello there,

 

I am trying to setup email confirmation with powerapps portal such that when user registers - they should see message to confirm their email on webpage , he/she then should receive an email to confirm their email address. Once they click on email link that says "I confirm" link in the email , users account will be created. Users can now login and access the restricted areas of the portal. Currently, portal lets users access the portal as soon as they register without confirming their email. We find it concerning as individuals can claim any email address as their identity without any confirmation requirement. Appreciate you help!

 

We are using LocalAuth ( aware of Azure B2C but for time being thats the route we are on with timelines etc!)

 

Thanks, Sam

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @samshaw,

Do you want to make the users create the account successfully only when they finish the email confirmation?

Could you please share a bit more about your scenario?

From your description, you want a registration form to be filled out, and once the form is submitted, the portal user will need to check their email for a confirmation email before they can fully authenticate to the Portal.

I think a custom registration form could achieve your needs, which will trigger an email to be sent to the user. This email acts as an invitation to authenticate, and lucky for us there is an invitation model built-in to Portals that we can leverage for this purpose. 

1). Configure Portal security to be invite-only, please check the site settings as below:

Enable or disable user registration

Set “Authentication/Registration/OpenRegistrationEnabled” to false.

Set “Authentication/Registration/InvitationEnabled” to true.

invitation-site-settings.jpg

2). Create our registration form, please create an entity form referring to as below:

About basic forms 

Please include the following fields:

2020-08-16_20-49-35.png

Once you have created the Form, you’ll need to add it to a Web Page.  I recommend creating a page called “Register” and adding the form to that page.regsiter-web-page.jpg

Add a link to the page to the header of your portal, so you can always click there as opposed to the sign in page.  Make sure that when using custom registration that you don’t lock down the home page, because if you do, users will be sent straight to the OOTB sign in page, which can’t be customized.

3). Create a traditional workflow to send the invite to the user, and to set the value of the “confirmed email” boolean field on the contact record to true.

invite-workflow.jpg

Alternatively, we can just call the OOTB Send portal invitation to Contact workflow which does everything we need.childworkflow.jpg

This workflow is OOTB and will create the invitation and send it for you:

2020-08-23_16-32-34.jpg

4). Add to the parent workflow.

set-email-confirmed.jpg

Hope it could help you.

Regards,

Qi

View solution in original post

2 REPLIES 2
v-qiaqi-msft
Community Support
Community Support

Hi @samshaw,

Do you want to make the users create the account successfully only when they finish the email confirmation?

Could you please share a bit more about your scenario?

From your description, you want a registration form to be filled out, and once the form is submitted, the portal user will need to check their email for a confirmation email before they can fully authenticate to the Portal.

I think a custom registration form could achieve your needs, which will trigger an email to be sent to the user. This email acts as an invitation to authenticate, and lucky for us there is an invitation model built-in to Portals that we can leverage for this purpose. 

1). Configure Portal security to be invite-only, please check the site settings as below:

Enable or disable user registration

Set “Authentication/Registration/OpenRegistrationEnabled” to false.

Set “Authentication/Registration/InvitationEnabled” to true.

invitation-site-settings.jpg

2). Create our registration form, please create an entity form referring to as below:

About basic forms 

Please include the following fields:

2020-08-16_20-49-35.png

Once you have created the Form, you’ll need to add it to a Web Page.  I recommend creating a page called “Register” and adding the form to that page.regsiter-web-page.jpg

Add a link to the page to the header of your portal, so you can always click there as opposed to the sign in page.  Make sure that when using custom registration that you don’t lock down the home page, because if you do, users will be sent straight to the OOTB sign in page, which can’t be customized.

3). Create a traditional workflow to send the invite to the user, and to set the value of the “confirmed email” boolean field on the contact record to true.

invite-workflow.jpg

Alternatively, we can just call the OOTB Send portal invitation to Contact workflow which does everything we need.childworkflow.jpg

This workflow is OOTB and will create the invitation and send it for you:

2020-08-23_16-32-34.jpg

4). Add to the parent workflow.

set-email-confirmed.jpg

Hope it could help you.

Regards,

Qi

View solution in original post

samshaw
New Member

Hello Qi,

Hope all is well and thank you so much for such a detailed explanation. I just wish Microsoft had provisioned some sort of validation/confirmation for email - as logged in to the portal with any email you provide without confirmation may lead to a potential security scenario!

 

many thanks again,

Sam

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Users online (36,730)