<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FlexiCoder Blog &#187; Membership</title>
	<atom:link href="http://www.flexicoder.com/blog/index.php/category/membership/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexicoder.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 28 Jul 2010 15:11:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CreateUserWizard Passsword Strength</title>
		<link>http://www.flexicoder.com/blog/index.php/2009/02/createuserwizard-passsword-strength/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2009/02/createuserwizard-passsword-strength/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 09:48:00 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[Membership]]></category>
		<category><![CDATA[.Net security]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=35</guid>
		<description><![CDATA[To configure the strength of the password used by the CreateUserWizard control it needs to be set in the membership section of your web.config




    
    
  



The above example sets it to 7 alphanumeric characters.
Social Bookmarking]]></description>
			<content:encoded><![CDATA[<p>To configure the strength of the password used by the <em>CreateUserWizard</em> control it needs to be set in the membership section of your web.config</p>
<p><code></p>
<pre class="brush: xml">
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="30">
<providers>
    <clear/>
    <add name="SqlProvider"
         type="System.Web.Security.SqlMembershipProvider"
         connectionStringName="SecurityConnection"
         applicationName="ImageRepository"
         enablePasswordRetrieval="true"
         enablePasswordReset="true"
         requiresQuestionAndAnswer="false"
         requiresUniqueEmail="true"
         passwordStrengthRegularExpression="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,10}$"
         passwordFormat="Clear"/>
  </providers>
</membership>
</pre>
<p></code></p>
<p>The above example sets it to 7 alphanumeric characters.</p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2009/02/createuserwizard-passsword-strength/&title=CreateUserWizard+Passsword+Strength&text=To+configure+the+strength+of+the+password+used+by+the+CreateUserWizard+control+it+needs+to+be+set+in+the+membership+section+of+your+web.config+++++++++++++++++++++The+above+example+sets+it+to+7...&tags=" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2009/02/createuserwizard-passsword-strength/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PasswordRecovery &#8211; Gotcha</title>
		<link>http://www.flexicoder.com/blog/index.php/2009/01/passwordrecovery-nightmare/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2009/01/passwordrecovery-nightmare/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 10:33:00 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[Membership]]></category>
		<category><![CDATA[.Net security]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=29</guid>
		<description><![CDATA[Using the default style for the register and password recovery controls, the register expects a user name and email address. The passowrd recovery template asks for your email address, but what it actually looks up in the background is based on the user name and will therefore never find a match for the email address [...]]]></description>
			<content:encoded><![CDATA[<p>Using the default style for the register and password recovery controls, the register expects a user name and email address. The passowrd recovery template asks for your email address, but what it actually looks up in the background is based on the user name and will therefore never find a match for the email address entered. A quick way round this is  to change the default text to say User name instead of Email Address!</p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2009/01/passwordrecovery-nightmare/&title=PasswordRecovery+%26%238211%3B+Gotcha&text=Using+the+default+style+for+the+register+and+password+recovery+controls%2C+the+register+expects+a+user+name+and+email+address.&tags=" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2009/01/passwordrecovery-nightmare/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CreateUserWizard &#8211; CreatedUser Event</title>
		<link>http://www.flexicoder.com/blog/index.php/2008/12/createuserwizard-createduser-event/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2008/12/createuserwizard-createduser-event/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 10:42:00 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[Membership]]></category>
		<category><![CDATA[.Net security]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=14</guid>
		<description><![CDATA[When the CreatedUser event is fired and the LoginCreatedUser is set to true, the new user is only logged in once the event is completed! To get the new user information use the following code&#8230;


using System.Web.Security;
...
protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
{
    TextBox serialNumberTextBox =
        (TextBox)CreateUserWizardStep1.ContentTemplateContainer.FindControl("SerialNumberTextBox");
 [...]]]></description>
			<content:encoded><![CDATA[<p>When the <em>CreatedUser</em> event is fired and the <em>LoginCreatedUser</em> is set to true, the new user is only logged in once the event is completed! To get the new user information use the following code&#8230;</p>
<p><code>
<pre class="brush:c#">
using System.Web.Security;
...
protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
{
    TextBox serialNumberTextBox =
        (TextBox)CreateUserWizardStep1.ContentTemplateContainer.FindControl("SerialNumberTextBox");
    SerialNumber serial = new SerialNumber(serialNumberTextBox.Text);
    serial.UserId = Membership.GetUser(CreateUserWizard1.UserName).ProviderUserKey.ToString();
    serial.DateRegistered = DateTime.Now;
    serial.Save();
}</pre>
<p></code></p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2008/12/createuserwizard-createduser-event/&title=CreateUserWizard+%26%238211%3B+CreatedUser+Event&text=When+the+CreatedUser+event+is+fired+and+the+LoginCreatedUser+is+set+to+true%2C+the+new+user+is+only+logged+in+once+the+event+is+completed%21&tags=" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2008/12/createuserwizard-createduser-event/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CreateUserWizard &#8211; ErrorMessage</title>
		<link>http://www.flexicoder.com/blog/index.php/2008/12/createuserwizard-errormessage/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2008/12/createuserwizard-errormessage/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 10:39:00 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[Membership]]></category>
		<category><![CDATA[.Net security]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=13</guid>
		<description><![CDATA[I can&#8217;t find anyway of using the ErrorMessage that is part of the CreateUserWizard. I can FindControl OK and set the values, but when it is rendered to the page its blank. Had to resort to adding my own literal to the page so that I can see my errors.
Social Bookmarking]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t find anyway of using the <em>ErrorMessage </em>that is part of the <em>CreateUserWizard</em>. I can <em>FindControl</em> OK and set the values, but when it is rendered to the page its blank. Had to resort to adding my own literal to the page so that I can see my errors.</p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2008/12/createuserwizard-errormessage/&title=CreateUserWizard+%26%238211%3B+ErrorMessage&text=I+can%26%238217%3Bt+find+anyway+of+using+the+ErrorMessage+that+is+part+of+the+CreateUserWizard.+I+can+FindControl+OK+and+set+the+values%2C+but+when+it+is+rendered+to+the+page+its+blank.&tags=" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2008/12/createuserwizard-errormessage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.Net Membership Configuration</title>
		<link>http://www.flexicoder.com/blog/index.php/2008/12/aspnet-membership-configuration/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2008/12/aspnet-membership-configuration/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 15:52:00 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Membership]]></category>
		<category><![CDATA[.Net security]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=10</guid>
		<description><![CDATA[To configure an existing site to use ASP.Net Membership, but storing the data in the site database rather than creating an MDF in the APP_Data folder.
Run the utility c:\windows\microsoft.net\framework\v2.0.50727\aspnet_regsql
Follow the wizard to connect to the relevant server/database, this will need to be repeated for both test and production.
In the &#60;system.web&#62; section of the web.config ensure [...]]]></description>
			<content:encoded><![CDATA[<p>To configure an existing site to use ASP.Net Membership, but storing the data in the site database rather than creating an MDF in the APP_Data folder.</p>
<p>Run the utility c:\windows\microsoft.net\framework\v2.0.50727\aspnet_regsql</p>
<p>Follow the wizard to connect to the relevant server/database, this will need to be repeated for both test and production.</p>
<p>In the &lt;system.web&gt; section of the web.config ensure that an entry as below is included…</p>
<p><code>
<pre class="brush:xml">
&lt;membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15"&gt;
  &lt;providers&gt;
    &lt;clear /&gt;
    &lt;add
      name="SqlProvider"
      type="System.Web.Security.SqlMembershipProvider"
      connectionStringName="SecurityConnection"
      applicationName="CHANGETHIS"
      enablePasswordRetrieval="false"
      enablePasswordReset="true"
      requiresQuestionAndAnswer="true"
      requiresUniqueEmail="true"
      passwordFormat="Hashed" /&gt;
  &lt;/providers&gt;
&lt;/membership&gt;</pre>
<p></code></p>
<p>In the &lt;connectionStrings&gt; section add the appropriate connection string with a key of  “SecurityConenction”</p>
<p>While editing the site within VS2005, from the WebSite menu selecti ASP.Net Configuration. This will open a web page that allows you to create users and rules for the application. Rules that are defined are stored in the Web.Config, so do this for the development site only, as you won’t have access to the live config file. Any folders with restricted access will also have a web.config file created in them, these will need to be promoted to live.</p>
<p>To release to production, change your security connection to point to the production database, set up the relevant users, but not the rules. Then when promoting code to production manually update the root config with the required authorisation, membership and connection strings, that can be taken from the development config file.</p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2008/12/aspnet-membership-configuration/&title=ASP.Net+Membership+Configuration&text=To+configure+an+existing+site+to+use+ASP.Net+Membership%2C+but+storing+the+data+in+the+site+database+rather+than+creating+an+MDF+in+the+APP_Data+folder.+Run+the+utility...&tags=config" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2008/12/aspnet-membership-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
