473,654 Members | 3,098 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to set the password lengtgh with Login Controls

ad
I want to limin the length of password must larger than 6.
How can I do with Login Controls of asp.net 2.0
Dec 2 '06 #1
6 2664
Hey ad,

If you are creating a new user, and are using the create user wizard,
set the PasswordRegular Expression to \w{6,}

If you're changing the password of an existing user, and are using the
changepassword control, set the PasswordRegular Expression to \w{6,}

On Sat, 2 Dec 2006 08:55:35 +0800, "ad" <fl****@wfes.tc c.edu.tw>
wrote:
>I want to limin the length of password must larger than 6.
How can I do with Login Controls of asp.net 2.0
--

Bits.Bytes.
http://bytes.thinkersroom.com
Dec 2 '06 #2
See :
http://www.odetocode.com/Articles/427.aspx

In web.config...

minRequiredPass wordLength="7"
minRequiredNona lphanumericChar acters="1"


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"ad" <fl****@wfes.tc c.edu.twwrote in message news:OH******** ******@TK2MSFTN GP04.phx.gbl...
>I want to limin the length of password must larger than 6.
How can I do with Login Controls of asp.net 2.0

Dec 2 '06 #3
ad
If I wnat there must be a alpha charater in the password,. How can I do?

"Rad [Visual C# MVP]" <no****@nospam. com>
???????:gm***** *************** ************@4a x.com...
Hey ad,

If you are creating a new user, and are using the create user wizard,
set the PasswordRegular Expression to \w{6,}

If you're changing the password of an existing user, and are using the
changepassword control, set the PasswordRegular Expression to \w{6,}

On Sat, 2 Dec 2006 08:55:35 +0800, "ad" <fl****@wfes.tc c.edu.tw>
wrote:
>>I want to limin the length of password must larger than 6.
How can I do with Login Controls of asp.net 2.0
--

Bits.Bytes.
http://bytes.thinkersroom.com

Dec 2 '06 #4
The character class \w covers alphanumeric characters. It is the same
as [a-zA-Z_0-9] which includes the underscore.

You can find more detail here...

http://msdn.microsoft.com/library/de...terclasses.asp

Brennan Stehling
http://brennan.offwhite.net/blog/

ad wrote:
If I wnat there must be a alpha charater in the password,. How can I do?

"Rad [Visual C# MVP]" <no****@nospam. com>
???????:gm***** *************** ************@4a x.com...
Hey ad,

If you are creating a new user, and are using the create user wizard,
set the PasswordRegular Expression to \w{6,}

If you're changing the password of an existing user, and are using the
changepassword control, set the PasswordRegular Expression to \w{6,}

On Sat, 2 Dec 2006 08:55:35 +0800, "ad" <fl****@wfes.tc c.edu.tw>
wrote:
>I want to limin the length of password must larger than 6.
How can I do with Login Controls of asp.net 2.0
--

Bits.Bytes.
http://bytes.thinkersroom.com
Dec 2 '06 #5
ad
But I want that there must include at least one alpha in it.
How can I do?
"Brennan Stehling" <of******@gmail .com>
???????:11***** *************** *@16g2000cwy.go oglegroups.com. ..
The character class \w covers alphanumeric characters. It is the same
as [a-zA-Z_0-9] which includes the underscore.

You can find more detail here...

http://msdn.microsoft.com/library/de...terclasses.asp

Brennan Stehling
http://brennan.offwhite.net/blog/

ad wrote:
>If I wnat there must be a alpha charater in the password,. How can I do?

"Rad [Visual C# MVP]" <no****@nospam. com>
???????:gm**** *************** *************@4 ax.com...
Hey ad,

If you are creating a new user, and are using the create user wizard,
set the PasswordRegular Expression to \w{6,}

If you're changing the password of an existing user, and are using the
changepassword control, set the PasswordRegular Expression to \w{6,}

On Sat, 2 Dec 2006 08:55:35 +0800, "ad" <fl****@wfes.tc c.edu.tw>
wrote:

I want to limin the length of password must larger than 6.
How can I do with Login Controls of asp.net 2.0

--

Bits.Bytes.
http://bytes.thinkersroom.com

Dec 2 '06 #6
Maybe you missed my reply to you ?

See :
http://www.odetocode.com/Articles/427.aspx

In web.config...

minRequiredPass wordLength="7"
minRequiredNona lphanumericChar acters="1"

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"ad" <fl****@wfes.tc c.edu.twwrote in message news:eU******** ******@TK2MSFTN GP03.phx.gbl...
But I want that there must include at least one alpha in it.
How can I do?
"Brennan Stehling" <of******@gmail .com>
???????:11***** *************** *@16g2000cwy.go oglegroups.com. ..
>The character class \w covers alphanumeric characters. It is the same
as [a-zA-Z_0-9] which includes the underscore.

You can find more detail here...

http://msdn.microsoft.com/library/de...terclasses.asp

Brennan Stehling
http://brennan.offwhite.net/blog/

ad wrote:
>>If I wnat there must be a alpha charater in the password,. How can I do?

"Rad [Visual C# MVP]" <no****@nospam. com>
???????:gm*** *************** **************@ 4ax.com...
Hey ad,

If you are creating a new user, and are using the create user wizard,
set the PasswordRegular Expression to \w{6,}

If you're changing the password of an existing user, and are using the
changepasswo rd control, set the PasswordRegular Expression to \w{6,}

On Sat, 2 Dec 2006 08:55:35 +0800, "ad" <fl****@wfes.tc c.edu.tw>
wrote:

I want to limin the length of password must larger than 6.
How can I do with Login Controls of asp.net 2.0

--

Bits.Bytes.
http://bytes.thinkersroom.com


Dec 2 '06 #7

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

Similar topics

6
3343
by: Lou | last post by:
Please can someone put me out my misery! Im trying to find a multiple user/password protection script that will redirect the specific user to a specific directory. At the moment I have set up htaccess which is fine but can only protect one directory unless I put htaccess on each directory which I think is a bit long winded, but is there any other way I can do this with using only one password script? Any info would be greatly...
5
17573
by: Tony | last post by:
Please help, I've scoured the web but cannot find an answer to this! I want to use WebRequest to get the contents of a web page. The trouble is, the page require you to go to a login page (using ASP - not ASP.NET), and enter a username and password to get in. How do I use WebRequest in this situation? I cannot find any way of supplying the username and password. The '.Credentials' does not work because that is only for Windows...
0
1246
by: Newbie | last post by:
hi all, i am doing a project which requires me to provide a security login feature. i understand that access has a user level security feature but i could not use it coz i'm tested on my ability to use existing controls. i did the login form, then it occured to me that it would be much more convenient for users to change passwords themselves without needing the administrator to change for them.
0
902
by: ad | last post by:
I use login controls in my web application, and have web.config as below: <forms name="HealthCookie" loginUrl="Login.aspx" defaultUrl="Home.aspx" protection="Validation" > If the user enter wrong password in the login control, the failureText of login control will appear. When I deploy my web application to another machine, and the use enter the correct password(the failureText does not appear), but it still can login. Why the login...
5
2794
by: nick | last post by:
I need to create a simple asp.net application that use password protect some html pages. The html page provider doesn't know asp.net. And the host doesn't allow me to create user accounts. What's the best way to store users/password except database tables? and to store html files?
5
1913
by: Afshar | last post by:
Hi everybody there, I have a special Login page that wants users to enter 3 passwords rather than a single password. But can't do it with Login control. I tried following scenarios: 1. Put an Login in the page and set its Visible = False instead put my own username and 3 password on the form. Then I checked 2nd and 3rd password seperately and passed username and password to Login control via its Username and Password properties but...
2
3192
by: pj | last post by:
I'm using asp.net 2.0 login controls, When a user forgets a password, they are sent an email with the new password. Two questions.... 1) how do I format the password that is being created to be only letters and numbers? Not something like "e%QtT6.Eja%XNG" 2) how do I redirect users to a change password page, next time they login with the new password sent to them via email? thanks is advance for any assitance,
1
7251
by: ad | last post by:
I want the if a user enter invalid password by tree times, the system will hold. How can I limit max Invalid Password Attempts with Login Controls? I have set the maxInvalidPasswordAttempts in web.config like below, but it no effect. <membership defaultProvider="MyMembershipProvider"> <providers>
0
1813
by: jobs | last post by:
Using the delivered login controls, I see there is something for passwordrecovery. But I can't seem to find how to set properties so it does not ask me for my security question. Is there any way to use the delivered controls to do what most sites do today, where if I lost my password, I simply enter my user name or email address and it mails it to. If my user name or email are not in the database, I get an error, otherwise a new password...
0
8375
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8593
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7306
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2714
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.