Mono Support Any way to assign users another role during registration ? (Closed)

Viewed 12790 time(s), 5 post(s), 3/28/2014 6:12:00 PM - by super
3/28/2014 6:12:00 PM
6018 Reputation 709 Total posts

When any user registers, he/she by default gets the role "Users".

Is there any way to assign another role to the user during the registration process ?

1
3/30/2014 7:47:29 AM
15993 Reputation 2214 Total posts

Hi,

you can change the default user role in the web.config by setting the following:

<add key="DefaultUserRoles" value="Users" />
Note: You can add multiple roles to this setting in CSV format.

Regards

2
4/1/2014 1:23:23 PM
6018 Reputation 709 Total posts

Can I add multiple tags like  this in webconfig ?

<add key="DefaultUserRoles" value="Users" />
<add key="DefaultUserRoles" value="NewsUsers" />
<add key="DefaultUserRoles" value="BlogUsers" />

3
4/1/2014 1:26:55 PM
3016 Reputation 428 Total posts

Hi,

you can use comma sign ','. An example:

<add key="DefaultUserRoles" value="Users,NewUsers" />
Regards.

4
4/1/2014 1:29:20 PM
6018 Reputation 709 Total posts

Ok,  thank you

5
This is a demo site for MonoX. Please visit Mono Software for more info.