newbie: setting IsApproved in web.config, how???

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

hey

asp.net 2.0

I want to set IsApproved (MembershipUser.IsApproved) to false in web.config
(I guess this is done in the profile section in web.config)... I wonder how
this can be done?

What I'm trying to do is that when a user register at my web site, his user
account is set to false (IsApproved=false).. then an email is sent to the
user where he must confirm that he really is that person who registered...

any suggestions on how I can set IsApproved in web.config are welcome!

Jeff
 
Hello Jeff,

I don't think it's possible to do this in web.config. If you are using
CreateUserWizard, you can make your own CreatedUser event handler and set
Membership.GetUser().IsApproved manually. To do this CreateUserWizard's
LoginCreatedUser has to be set to true, otherwise Membership.GetUser() is not
working so don't forget to logout new user at the end of your event handler.

I hope this will work, i have never done it before.

Regards,
Ladislav Mrnka
 
Back
Top