Re: New user default Role
- From: Dominick Baier [DevelopMentor] <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 22 Apr 2006 16:19:51 +0000 (UTC)
you can handle the CreatedUser event of the CreateUserWizard control to add the user to a role
protected void _createUser_CreatedUser(
object sender, EventArgs e)
{
// add the user to a standard role after registration
Roles.AddUserToRole(_createUser.UserName, "User");
}
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
hi,
Is there a way when a New User is created through the ASP.NET 2.0 new
user control that he is placed into a default Role? I'm using VB and I
would think I probably have to create a stored procedure to the aspnet
db. I'm not sure if there is just a way to set the default.
.
- Prev by Date: Re: Forms authentication credentials fail
- Next by Date: Re: Custom Membership Provider - AD AND SQL
- Previous by thread: Custom Membership Provider - AD AND SQL
- Next by thread: Re: Kerberos Constrained Delegation For Access To Single Application P
- Index(es):