<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Web Wiz Support and Community Forums : Registrati&#111;n bug 7.9</title>
  <link>https://forums.webwiz.net/</link>
  <description><![CDATA[This is an XML content feed of; Web Wiz Support and Community Forums : Web Wiz Forums : Registrati&#111;n bug 7.9]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 13 Apr 2026 21:56:54 +0000</pubDate>
  <lastBuildDate>Tue, 30 Aug 2005 18:41:12 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forums.webwiz.net/RSS_post_feed.asp?TID=16224</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Web Wiz Support and Community Forums]]></title>
   <url>https://forums.webwiz.net/forum_images/web_wiz_forums.png</url>
   <link>https://forums.webwiz.net/</link>
  </image>
  <item>
   <title><![CDATA[Registrati&#111;n bug 7.9 : Well, I guess the If/Then MUST...]]></title>
   <link>https://forums.webwiz.net/registration-bug-7-9_topic16224_post89708.html#89708</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=19649">JJLatWebWiz</a><br /><strong>Subject:</strong> 16224<br /><strong>Posted:</strong> 30&nbsp;August&nbsp;2005 at 6:41pm<br /><br />Well, I guess the If/Then MUST stop the table update so here's what I did (and actually tested it this time):<DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" size=1>'For extra security create a new user code for the user<BR><U><FONT color=#ff0000>If CBool(rsCommon("Active")) then<BR></FONT></U>&nbsp;&nbsp;&nbsp;&nbsp; strUserCode = userCode(strUsername)<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp; 'Save the new usercode back to the database<BR>&nbsp;&nbsp;&nbsp;&nbsp; rsCommon.Fields("User_code") = strUserCode<BR>&nbsp;&nbsp;&nbsp;&nbsp; rsCommon.Update<BR><U><FONT color=#ff0000>Else<BR>&nbsp;&nbsp;&nbsp;&nbsp; strUserCode = rsCommon("User_code")<BR>End If<BR></FONT></U></FONT></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 30 Aug 2005 18:41:12 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/registration-bug-7-9_topic16224_post89708.html#89708</guid>
  </item> 
  <item>
   <title><![CDATA[Registrati&#111;n bug 7.9 : The only action that takes place...]]></title>
   <link>https://forums.webwiz.net/registration-bug-7-9_topic16224_post89648.html#89648</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=19649">JJLatWebWiz</a><br /><strong>Subject:</strong> 16224<br /><strong>Posted:</strong> 30&nbsp;August&nbsp;2005 at 2:06am<br /><br />The only action that takes place when the user clicks the "Logout" link is to execute the "log_off_user.asp" which simply appends "LOGGED-OFF" to the username and stores it in the &#099;ookie under "UID" instead of the UserCode.&nbsp; No change is made to the database.<DIV></DIV><DIV>&nbsp;</DIV><DIV>The usercode is created or changed by the function "UserCode" and except for admin functions, is only used&nbsp;by: 1)&nbsp;<U>register.asp</U> when a user creates their account or makes changes to their activated account, 2) <U>activate.asp</U> to set a new usercode when&nbsp;the user activates their account from the emailed URL, 3) <U>forgotten_password.asp</U> to set a new usercode when the user requests a password change, and 4) in <U>login_user.asp</U> where every time the user authenticates, a new usercode is created which prevents&nbsp;a user from logging on at multiple computers.</DIV><DIV>&nbsp;</DIV><DIV>The culprit is #4...login_user.asp.&nbsp; The new user code is generated EVEN&nbsp;IF&nbsp;the account is not yet activated but the password is correct.&nbsp; So I was wrong.&nbsp; It appears to be&nbsp;over-anxious users who aren't waiting for their activation email before attempting to log in.</DIV><DIV>&nbsp;</DIV><DIV>To fix it, open login_user.asp.&nbsp; First, add the "Active" field to the primary query:</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" size=1>strSQL = "SELECT " &amp; strDbTable &amp; "Author.Password, " &amp; strDbTable &amp; "Author.Salt, " &amp; strDbTable &amp; "Author.Username, " &amp; strDbTable &amp; "Author.Author_ID, " &amp; strDbTable &amp; "Author.User_code<U><FONT color=#ff0000>, " &amp; strDbTable &amp; "Author.Active</FONT></U> "</FONT></DIV><DIV>&nbsp;</DIV><DIV>and then add a simple if-then to stop the new user code from being generated if the account is not active:</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" size=1>'For extra security create a new user code for the user<BR><FONT color=#ff0000><U>If CBool(rsCommon("Active")) then </U></FONT>strUserCode = userCode(strUsername)</FONT></DIV><DIV>&nbsp;</DIV><DIV>This allows a new usercode only if the account is activated.&nbsp;&nbsp;I would also stop the table from updating in the&nbsp;2 lines immediately below that, but it's most important&nbsp;to stop the new user code&nbsp;from being built.</DIV><DIV>&nbsp;</DIV><DIV>Since the new usercode IS generated when the user actually does activate, there is little risk in not changing usercodes on login until activation.&nbsp; This login_user.asp usercode change isn't part of 7.01 so that's why I haven't seen it before.</DIV>]]>
   </description>
   <pubDate>Tue, 30 Aug 2005 02:06:16 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/registration-bug-7-9_topic16224_post89648.html#89648</guid>
  </item> 
  <item>
   <title><![CDATA[Registrati&#111;n bug 7.9 : on logg off, the usercode is prefixxed...]]></title>
   <link>https://forums.webwiz.net/registration-bug-7-9_topic16224_post89631.html#89631</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=2216">dj air</a><br /><strong>Subject:</strong> 16224<br /><strong>Posted:</strong> 29&nbsp;August&nbsp;2005 at 5:46pm<br /><br />on logg off, the usercode is prefixxed with<br><br>LOGGED-OFF<br><br>so yes the chain of events above could be the problem<br>]]>
   </description>
   <pubDate>Mon, 29 Aug 2005 17:46:44 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/registration-bug-7-9_topic16224_post89631.html#89631</guid>
  </item> 
  <item>
   <title><![CDATA[Registrati&#111;n bug 7.9 : If the logoff does in fact change...]]></title>
   <link>https://forums.webwiz.net/registration-bug-7-9_topic16224_post89627.html#89627</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=12115">wistex</a><br /><strong>Subject:</strong> 16224<br /><strong>Posted:</strong> 29&nbsp;August&nbsp;2005 at 3:08pm<br /><br />If the logoff does in fact change the user_code (I haven't looked at the 7.9 code yet), then it could cause the problem you are describing if the following sequence of events occur:<OL><LI>User registers for an account.</LI><LI>User is e-mailed a validation e-mail&nbsp;that uses the current user_code to verify.</LI><LI>User clicks the logout button, which changes the user_code.</LI><LI>User clicks on the link in the validation e-mail with the&nbsp;original user_code.</LI></OL><P>Note: I am not 100% sure that the user_code gets changes when you logout.&nbsp; It might actually be somewhere else in the code.&nbsp; But I do remember that the user_code does get changed periodically for the reason I stated above.</P>]]>
   </description>
   <pubDate>Mon, 29 Aug 2005 15:08:51 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/registration-bug-7-9_topic16224_post89627.html#89627</guid>
  </item> 
  <item>
   <title><![CDATA[Registrati&#111;n bug 7.9 :   wistex wrote: Doesn&amp;#039;t...]]></title>
   <link>https://forums.webwiz.net/registration-bug-7-9_topic16224_post89615.html#89615</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=19649">JJLatWebWiz</a><br /><strong>Subject:</strong> 16224<br /><strong>Posted:</strong> 29&nbsp;August&nbsp;2005 at 10:50am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by wistex" alt="Originally posted by wistex" style="vertical-align: text-bottom;" /> <strong>wistex wrote:</strong><br /><br /><P>Doesn't it get changed when you logout too?&nbsp; I thought the user_code was also used to force a re-login on remote machines you forgot to logout of.&nbsp; I may be thinking of something different, but I remember that was implemented so that you could log yourself out of someone else's machine remotely if you forgot to logoff while you were there.&nbsp; If someone tried to use that computer with you still logged in, it would ask&nbsp;them to login again since the user_code in their &#099;ookie no longer matched the one in the database.</P></td></tr></table> <DIV>&nbsp;</DIV><DIV>That may be true.&nbsp; I wasn't aware of it and I have only just begun looking at anything beyond 7.01, so maybe it's a new feature.&nbsp; But even if that's the case, it doesn't happen during the registration process.&nbsp; So I'm sticking with my theory that it relies on a user either double-clicking the submit button or otherwise clicking it a second time before the screen changes AND while the server is in just the right state to allow a second submission with the same username.&nbsp; I think this&nbsp;also might&nbsp;only happen on a busy site with multiple registrations taking place at the same time.&nbsp; It may also only be an Access problem.</DIV><DIV>&nbsp;</DIV><DIV>What do you think?</DIV>]]>
   </description>
   <pubDate>Mon, 29 Aug 2005 10:50:47 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/registration-bug-7-9_topic16224_post89615.html#89615</guid>
  </item> 
  <item>
   <title><![CDATA[Registrati&#111;n bug 7.9 : Doesn&amp;#039;t it get changed when...]]></title>
   <link>https://forums.webwiz.net/registration-bug-7-9_topic16224_post89561.html#89561</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=12115">wistex</a><br /><strong>Subject:</strong> 16224<br /><strong>Posted:</strong> 28&nbsp;August&nbsp;2005 at 1:48pm<br /><br /><P>Doesn't it get changed when you logout too?&nbsp; I thought the user_code was also used to force a re-login on remote machines you forgot to logout of.&nbsp; I may be thinking of something different, but I remember that was implemented so that you could log yourself out of someone else's machine remotely if you forgot to logoff while you were there.&nbsp; If someone tried to use that computer with you still logged in, it would ask&nbsp;them to login again since the user_code in their &#099;ookie no longer matched the one in the database.</P>]]>
   </description>
   <pubDate>Sun, 28 Aug 2005 13:48:21 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/registration-bug-7-9_topic16224_post89561.html#89561</guid>
  </item> 
  <item>
   <title><![CDATA[Registrati&#111;n bug 7.9 : Here&amp;#039;s my first guess: those...]]></title>
   <link>https://forums.webwiz.net/registration-bug-7-9_topic16224_post89137.html#89137</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=19649">JJLatWebWiz</a><br /><strong>Subject:</strong> 16224<br /><strong>Posted:</strong> 21&nbsp;August&nbsp;2005 at 11:49pm<br /><br /><P>Here's my first guess: those few users are actually double-clicking the Submit button or clicking a second time on the Submit button at just the right moment that causes the "register.asp" to think that the user name isn't yet registered and allows the user_code to be created again for the email.&nbsp; I haven't been able to duplicate the problem to test my guess, but there may be some special condition the server must be in to duplicate the problem.&nbsp; I tested it on SQL, and maybe Access is more susceptable.</P><DIV>After a cursory review of register.asp, during the new user registration process, the user_code is generated just one time to be written into the database and for the activation email.&nbsp; The user_code is rebuilt during an account update, and maybe that's why a double-clicked submit button under certain circumstances causes a second user_code generation.&nbsp; Though it seems like the user would get multiple emails, and at least one of them would have the correct user_code.</DIV><DIV>&nbsp;</DIV><DIV>Perhaps there should be a javascript to disable the submit button when it is first pressed to prevent a double-click.</DIV><DIV></DIV>]]>
   </description>
   <pubDate>Sun, 21 Aug 2005 23:49:33 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/registration-bug-7-9_topic16224_post89137.html#89137</guid>
  </item> 
  <item>
   <title><![CDATA[Registrati&#111;n bug 7.9 : Email:  User714EFA3436  Da...]]></title>
   <link>https://forums.webwiz.net/registration-bug-7-9_topic16224_post88997.html#88997</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=13831">psycotik</a><br /><strong>Subject:</strong> 16224<br /><strong>Posted:</strong> 19&nbsp;August&nbsp;2005 at 7:07am<br /><br />Email:<br><br>User714EFA3436<br><br>Database:<br><br>UserZ5ZD8E4B96<br><br><br><br>I have a screenshot of the URL so i'm definate about the code.<br>]]>
   </description>
   <pubDate>Fri, 19 Aug 2005 07:07:25 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/registration-bug-7-9_topic16224_post88997.html#88997</guid>
  </item> 
  <item>
   <title><![CDATA[Registrati&#111;n bug 7.9 : Have you seen any of the activation...]]></title>
   <link>https://forums.webwiz.net/registration-bug-7-9_topic16224_post88893.html#88893</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=19649">JJLatWebWiz</a><br /><strong>Subject:</strong> 16224<br /><strong>Posted:</strong> 17&nbsp;August&nbsp;2005 at 12:38pm<br /><br />Have you seen any of the activation emails that have mismatched user_codes?&nbsp; How significant is the difference between the stored user_code and the emailed user_code?&nbsp; Can you provide an example or 2?<DIV>&nbsp;</DIV><DIV>The only registration problems I've had are the result of the JMail ISO Subject bug causing registration emails to be blocked as spam.</DIV>]]>
   </description>
   <pubDate>Wed, 17 Aug 2005 12:38:52 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/registration-bug-7-9_topic16224_post88893.html#88893</guid>
  </item> 
  <item>
   <title><![CDATA[Registrati&#111;n bug 7.9 : I dont think that many people...]]></title>
   <link>https://forums.webwiz.net/registration-bug-7-9_topic16224_post88877.html#88877</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=13831">psycotik</a><br /><strong>Subject:</strong> 16224<br /><strong>Posted:</strong> 17&nbsp;August&nbsp;2005 at 6:23am<br /><br />I dont think that many people would do that. It seems to happen to quite a large number of members.]]>
   </description>
   <pubDate>Wed, 17 Aug 2005 06:23:48 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/registration-bug-7-9_topic16224_post88877.html#88877</guid>
  </item> 
 </channel>
</rss>