apostrophecms / apostrophe-passport

Allows users to log into Apostrophe CMS sites via Google, Gitlab, etc. Works with most passport strategy modules.
MIT License
13 stars 7 forks source link

add to a group dynamically #8

Closed ecb34 closed 5 years ago

ecb34 commented 5 years ago

is there a way to create on the fly a user in a group dynamically using the username, email, role...?

e.g: according to his role, add the user to the group admin or guest

boutell commented 5 years ago

You could extend the createUser method to do that, using the super pattern.

https://docs.apostrophecms.org/apostrophe/other/glossary#super-pattern