Developer forum

Forum » Development » Create user as inactive using Forms for Editors

Create user as inactive using Forms for Editors

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I use the forms for editor module with the "Create user on form submit" to create a new user. That works well but the user is always active. We like to deactivate the user on create so it can be approved and activated by an admin. Is this possible? I looked into hooking into OnAfterSubmitSave but that fires before the user is created. Then the user creation code called within SaveForm of the frontend module does't call any further notifications or allow me to set the user as inactive.

I also tried to add a field called UserManagement_Form_Active to the form and set it to false, but I can't map it to a user field in the Automatic value section.

Any other ideas on how to accomplish this?

Thanks!


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Put the users into a group that has no permissions. Then they exist, but can do nothing - they can login, but has no priveleges.

Votes for this answer: 1

 

You must be logged in to post in the forum