<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"><channel><title>Adding Security and Membership</title><link>http://www.asp.net</link><pubDate>Fri, 22 Mar 2013 13:28:16 GMT</pubDate><generator>umbraco</generator><description>Comments for Adding Security and Membership</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/38394" rel="self" type="application/rss+xml" /><item><title>Comment Posted by XSapien</title><link>http://www.asp.net/web-pages/tutorials/security/16-adding-security-and-membership</link><pubDate>Tue, 13 Nov 2012 00:07:03 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016794</guid><description><![CDATA[ <p>&quot;Note: By default, ASP.NET web pages send credentials to the server in clear text (as human-readable text) .... You can required email messages to be sent using SSL by setting WebMail.EnableSsl=true as in the previous example....&quot;</p><p></p><p>I just installed WebMatrix today and it was set to &quot;true&quot; by default.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/XSapien.jpg?forceidenticon=false&amp;dt=635072743200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by frankeirPT</title><link>http://www.asp.net/web-pages/tutorials/security/16-adding-security-and-membership</link><pubDate>Sun, 09 Dec 2012 13:36:16 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016968</guid><description><![CDATA[ <p>Hi.</p><p></p><p>I&#39;m using webmatrix 2 to create a website and I do all the instructions in this tutorial, but in the step of registering a user, nothing appends and the website does not move to the confirmation page.</p><p>Can anyone help? Thanks. </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/frankeirPT.jpg?forceidenticon=false&amp;dt=635072743200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by offthemap</title><link>http://www.asp.net/web-pages/tutorials/security/16-adding-security-and-membership</link><pubDate>Tue, 25 Dec 2012 22:55:26 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000017066</guid><description><![CDATA[ <p>Same problem as frankiePT.  I created a new site and entered SMTP details as instructed but have got the following error:</p><p></p><p>&#39;A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond&#39;.</p><p></p><p>I used a friends ISP details and got: &#39;Server does not support secure connections.&#39;</p><p></p><p>Any help appreciated.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/offthemap.jpg?forceidenticon=false&amp;dt=635072743200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by offthemap</title><link>http://www.asp.net/web-pages/tutorials/security/16-adding-security-and-membership</link><pubDate>Wed, 26 Dec 2012 01:14:42 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000017068</guid><description><![CDATA[ <p>Okay, after a couple of hours and a nap, I solved my own problem using a hotmail account and these work instructions:</p><p></p><p><a rel="nofollow" href="http://windows.microsoft.com/en-AU/hotmail/send-receive-email-from-mail-client" target="_blank">windows.microsoft.com/</a></p><p></p><p>and adding this: &#39; WebMail.SmtpPort = 587;&#39; to my code.</p><p></p><p>My conclusion is that ISPs don&#39;t like me using port 25 for some reason.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/offthemap.jpg?forceidenticon=false&amp;dt=635072743200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by foblivio</title><link>http://www.asp.net/web-pages/tutorials/security/16-adding-security-and-membership</link><pubDate>Tue, 12 Mar 2013 16:30:20 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018670</guid><description><![CDATA[ <p>There is at least one bug in PasswordReset.cshtml, causing it to error out.</p><p></p><p>Currently, the code reads:</p><p></p><p>    // Setup validation</p><p>    Validation.RequireField(&quot;newPassword&quot;, &quot;The new password field is required.&quot;);</p><p>    Validation.Add(&quot;confirmPassword&quot;,</p><p>        Validator.EqualsTo(&quot;newPassword&quot;, &quot;The new password and confirmation password do not match.&quot;));</p><p>    Validation.RequireField(&quot;passwordResetToken&quot;, &quot;The password reset token field is required.&quot;);</p><p>    Validation.Add(&quot;newPassword&quot;,</p><p>        Validator.StringLength(</p><p>            maxLength: Int32.MaxValue,</p><p>            minLength: 6,</p><p>            errorMessage: &quot;New password must be at least 6 characters&quot;));</p><p></p><p>I put an if (IsPost()) {      } around most of the above code because we don&#39;t need to validate empty fields upon arriving at the page from a get/re-direct:</p><p></p><p>    // Setup validation</p><p>    if (IsPost) </p><p>    {</p><p>        // Setup validation</p><p>        Validation.RequireField(&quot;newPassword&quot;, &quot;The new password field is required.&quot;); </p><p>        Validation.Add(&quot;confirmPassword&quot;,</p><p>            Validator.EqualsTo(&quot;newPassword&quot;, &quot;The new password and confirmation password do not match.&quot;));</p><p>        Validation.Add(&quot;newPassword&quot;,</p><p>            Validator.StringLength(</p><p>                maxLength: Int32.MaxValue,</p><p>                minLength: 6,</p><p>                errorMessage: &quot;New password must be at least 6 characters&quot;));</p><p>    }</p><p></p><p>    Validation.RequireField(&quot;resetToken&quot;, &quot;The password reset token field is required.&quot;);</p><p></p><p></p><p>AND THERE IS A DEFINITE BUG: The original code uses a form element named &quot;passwordResetToken&quot; which really should be &quot;resetToken&quot;.  Thi is causing validation to fail.</p><p></p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/foblivio.jpg?forceidenticon=false&amp;dt=635072743200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by foblivio</title><link>http://www.asp.net/web-pages/tutorials/security/16-adding-security-and-membership</link><pubDate>Fri, 22 Mar 2013 13:28:16 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018760</guid><description><![CDATA[ <p>In the section about the ReCatpcha helper, I had to go to the Package Manager to search for and then install the package:</p><p></p><p>    ASP.NET Web Helpers Library</p><p></p><p>to eliminate an &quot;The name &#39;ReCaptcha&#39; does not exist in the current context&quot; error.  I searched using keyword &quot;web&quot;.   The package contains the required Microsoft.Web.Helpers.dll.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/foblivio.jpg?forceidenticon=false&amp;dt=635072743200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>