Developer forum

Forum » CMS - Standard features » Create Users app - disable validation + other questions

Create Users app - disable validation + other questions

Mark Hoogkamer
Reply

Hi,

Another one I might be overthinking:I have set up a Create User form and the user is automatically added to a group and all mandatory and extra user data fields are filled correctly*. Only, the user is set to INACTIVE. For my client I would need to have the user set to ACTIVE upon creation. Is this possible?

 

* I also can't seem to use the VAT REG NUMBER field here, which the client needs to either move the user to 'Approved B2B User' or keep it under 'View Catalogue Only' where they are auto added to upon completing the Create Account form. Is this a bug or is there a reason for this? We used the correct system name from the documentation, but the field value is the only one that is not filled in the user profile (everything from address to phone number comes through correctly).


Thanks in advance for your help!

inactive.png

Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

No, that is not possible, nor should it be. Would be a security breach out of this world... The app will send out an email if a template is chosen where the user can complete the setup and set a password.

If you really want it, you can create a notification subscriber for  Notifications.Notifications.UserSaved - and set the user to active. But I would highly recommend not to do it as you will run into issues.

The vat reg number is a missing mapping in user creation - now fixed and rolling out soon.

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

No, that is not possible, nor should it be. Would be a security breach out of this world... The app will send out an email if a template is chosen where the user can complete the setup and set a password.

If you really want it, you can create a notification subscriber for  Notifications.Notifications.UserSaved - and set the user to active. But I would highly recommend not to do it as you will run into issues.

The vat reg number is a missing mapping in user creation - now fixed and rolling out soon.

 
Mark Hoogkamer
Reply

Hi Nicolai,

Thanks for the news on the vat reg number.

I see the issue with automatic activation, I assume the password creation through e-mail link is the way to go? For my client that's okay too, as long as they don't have to manually activate the client.

How do I set this up to work? Documentation on the app is sparse and using the standard e-mail leads to a dead link.
Thanks in advance for your insights!

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Mark

I would believe it is described in details with examples here: https://doc.dynamicweb.dev/documentation/implementing/content/apps/users/users-create.html#how-activation--redirects-work

The article explains how the flow is and that the user is given a link to reset password here: https://doc.dynamicweb.dev/documentation/implementing/content/apps/users/users-password.html

In the confirmation email send to the user, there will be a link to the 'reset password' page using @Model.ApprovalLink - it will look something like this:

Default.aspx?ID={CreatePasswordPageId}&RecoveryToken={PasswordRecoveryToken}&IsNewUser=true

When the user clicks that link, they can choose a password and when that is accepted the user is activated.

Let me know what is missing from the docs (what is hard to understand or what we have not explained in enough details) - and I will try to update the documentation to clarify.

Thanks, Nicolai

Votes for this answer: 1
 
Mark Hoogkamer
Reply

Hi Nicolai,

Thanks for providing the correct documentation - it is indeed complete and we've succeeded in creating our user flow.

 

You must be logged in to post in the forum