Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Regular Expression Use in Password Recovery Control

Reply
Thread Tools

Regular Expression Use in Password Recovery Control

 
 
EagleRed@HighFlyingBirds.com
Guest
Posts: n/a
 
      04-01-2006
I have an ASP.NET 2.0 application that is using Forms Authentication and the
SQL Server 2005 membership provider. I am using the password recovery
control to allow users to recover passwords. (The passwords are stored in
hashed form.) I noticed that the passwords that are generated do not fit the
regular expression that is supplied in the web.config file. They can be too
long and can contain disallowed characters. For example, the max. length in
my regular expression validator is 12 characters and the password returned
contained 14 characters.

As a consequence when the password is used in subsequent operations the
regular expression validators reject it. (Not pretty for my users.)

What is happening here? What are some reasonable remedies? The password is
already set in the aspnet_Membership table the uses can be stuck? I have
checked the documentation on the Membership.GeneratePassword method and I see
I need to change the regular expression to accept the characters in that
method. The only thing that is not specified is the maximum length of the
password this method generates. What is that value?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy to use regular expression library for speech control jukebox Jeff C++ 6 07-26-2005 02:36 PM
Compiler error occurred when try to use a flexible template expression in preprocessor definesCompiler error occurred when try to use a flexible template expression in preprocessor defines snnn C++ 6 03-14-2005 04:09 PM
Digital Image Recovery and Memory Stick Recovery; Recovery of Lost Photos Digital Image Recovery Computer Support 1 09-10-2004 04:43 PM
Digital Image Recovery and Memory Stick Recovery; Recovery of Lost Photos Digital Image Recovery Digital Photography 0 09-10-2004 04:21 PM
Dynamically changing the regular expression of Regular Expression validator VSK ASP .Net 2 08-24-2003 02:47 PM



Advertisments