MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

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

Viewed 12478 time(s), 5 post(s) 28.03.2014 18:12:00by super
super

super

28.03.2014 18:12:00
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 ?
Dieser Inhalt wurde noch nicht bewertet. 
6018 Reputation 709 Total posts
khorvat

khorvat

30.03.2014 07:47:29
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
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
super

super

01.04.2014 13:23:23
Can I add multiple tags like  this in webconfig ?

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

Dieser Inhalt wurde noch nicht bewertet. 
6018 Reputation 709 Total posts
imarusic

imarusic

01.04.2014 13:26:55
Hi,

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

<add key="DefaultUserRoles" value="Users,NewUsers" />
Regards.
Dieser Inhalt wurde noch nicht bewertet. 
3016 Reputation 428 Total posts
super

super

01.04.2014 13:29:20
Ok,  thank you
Dieser Inhalt wurde noch nicht bewertet. 
6018 Reputation 709 Total posts