creode / magic-login

A Magic Link plugin which sits on top of the existing user sign in and registration process.
Other
3 stars 3 forks source link

Ability to define what user groups are allowed to use Magic Login rather than the current default Magic Login group #23

Open zizther opened 1 year ago

zizther commented 1 year ago

In my case I want to enable all users, current and new users to be use the magic login facility no matter what user group they are within.

Some form of checkboxes within the CP or array within the config file would handy.

My use case is, when a user is created they are auto assigned to a user group called member, it would be good for these users to automatically be able to use Magic login, as well as users I then assign to Admin or other user groups that are then allowed via the plugin settings/config.

zizther commented 1 year ago

On testing I have been able set the default member group as Members and on successful submission of a user registration it does assign the user to both the Members and Magic Login group which is a nice feature as it does mean that it will handle some of the use-case by auto-assigning to the Magic Login group.

It would be a nice feature to be able to define additional user groups still

jaymeh commented 1 year ago

Thanks @zizther , yeah, I'll have another look into this one. Isn't the most ideal approach to handling all of this. Think at some point the groups functionality could do with a bit of a refactor.