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

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top