sign up the role to be stored in the db is "agency" but it is alwyas stored as "user" any help ?

5 Replies
bekacru
bekacru2mo ago
are you using the admin plugin?
benarbia
benarbiaOP2mo ago
yes , in fact i want 3 roles ,user , admin and agency but when i sign up as agency it always store user in the role not agency as i want
bekacru
bekacru2mo ago
roles can't be set from the client. If you want to change the default, role type you can pass defaultRole in the plugin config
benarbia
benarbiaOP2mo ago
role is by default is "user" but in the sign up i have an option to sign up as an "agency" i want when that check box is checked the account to create with role "agency" so it that possible ? I removed the admin plugin it was always pass the role as "user" when i signup even when i used database hook , now it store "agency" as i wanted
shahreaz
shahreaz2mo ago
@bekacru with admin plugin is it not possible?? I want all the features of the admin plugin.

Did you find this page helpful?