Forum Moderators: open

Message Too Old, No Replies

Is it possible to put accounts into roles at creation?

using ASP.NET, if it matters

         

P34c3m4k3r

6:28 pm on May 21, 2009 (gmt 0)

10+ Year Member



I need to have 2 separate Account types with totally separate access privileges. I've created 2 separate account creation pages and the roles/access rules to match them, but as it stands I'd need to manually shift new users into separate roles. Any help would be greatly appreciated.

Thanks much,
Peacemaker

[edited by: P34c3m4k3r at 6:29 pm (utc) on May 21, 2009]

P34c3m4k3r

7:43 pm on Jun 3, 2009 (gmt 0)

10+ Year Member



*bump*

I can't find info on this anywhere, so any help at all would be greatly appreciated.

P34c3m4k3r

6:42 pm on Jun 11, 2009 (gmt 0)

10+ Year Member



I figured it out. Thanks for all the wonderful help you guys provided. </sarcasm>

marcel

7:30 pm on Jun 11, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Could you post the answer here so you could help the others that may encounter this problem?

P34c3m4k3r

8:21 pm on Jun 11, 2009 (gmt 0)

10+ Year Member



Sure. It's pretty simple, really... You just set up your account registration however you care to do so, then at the end you add a subroutine at the end that reads something like this:

"roles.addusertorole(*username gotten from somewhere*, *name of role*)"