473,386 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Setting IsApproved to false on CreateUser Control

JJ
How can you set the IsApproved flag to false for all new registrations?
I am using the createUser wizard to setup my user registration page.

Thanks in advance,
JJ
Sep 11 '06 #1
1 3600
I'm also running into dead ends trying figuring this one out.

Quoted from 4 Guys from rolla:
"
The Membership system enables user accounts to be marked as inactive
(not approved) and locked out. When creating a new user account, the
account is, by default, approved. However, in some scenarios you might
want to have an administrator manually approve new accounts before they
become active, or have the user progress through some automated process
(like clicking on a verification link sent through email). In either
case, the newly created user would be marked as inactive. Such a user
cannot log in to the site, as the ValidateUser(userName, password)
method will always return False, regardless of whether they entered
their correct credentials.
"

How can this default behavior be changed to "not approved" ?
Thanks much.
Mike

JJ wrote:
How can you set the IsApproved flag to false for all new registrations?
I am using the createUser wizard to setup my user registration page.

Thanks in advance,
JJ
Oct 5 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: MLH | last post by:
A97: If I create a new user with CreateUser Method, is she automatically a member of Users group? Or, do I have to append her to that group?
4
by: Gill Smith | last post by:
After setting the web control text box enable property to FALSE makes the control to loose the data between round trip. I am making sure that the property - EnableViewState = TRUE. Same code...
0
by: Portman | last post by:
I've used the Membership classes in an ASP.NET 2.0 application to create an application that interfaces with an older SQL Server 2000 database. Everything is working except the following... Like...
1
by: VB Programmer | last post by:
I am using personalization/profile to store info for the user that is not contained in the aspnet_Users or aspnet_Membership tables. This info includes, firstname, lastname, and phonenumber. ...
0
by: Alexandre | last post by:
Hi! In this signature method: MembershipCreateStatus status; MembershipUser newUser = Membership.CreateUser(CreateUserWizard1.UserName, CreateUserWizard1.Password, CreateUserWizard1.Email,...
7
by: Academic | last post by:
What are the different effects of the following two statements: C1.Cursor = Cursors.WaitCursor C1.Cursor.Current = Cursors.WaitCursor I believe the first replaces the entire C1.Cursor...
3
by: Jeff | last post by:
ASP.NET 2.0 The code below is triggered by OnCreatedUser from the CreateUserWizard in my website. The problem is that user.IsApproved = false; don't set user.IsApproved to false. After I've...
2
by: Jeff | last post by:
ASP.NET 2.0 The code below doesn't set IsApproved to true. I mean that I've debugged this code and usr.IsApproved actually get set to true. But when I quit the application and in VS2005 I start...
1
by: Cirene | last post by:
Here's my code: Dim usr As MembershipUser = Membership.GetUser(CType(CType(fvPosterInfo.FindControl("UserNameLabel"), Label).Text, String)) usr.IsApproved = False After I set usr.IsApproved...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.