<?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 : Error with usercode</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 : Error with usercode]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 09 Apr 2026 01:02:12 +0000</pubDate>
  <lastBuildDate>Sat, 18 Sep 2004 14:25:58 +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=11846</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[Error with usercode : here is a mod you can do . its...]]></title>
   <link>https://forums.webwiz.net/error-with-usercode_topic11846_post65710.html#65710</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=2216">dj air</a><br /><strong>Subject:</strong> 11846<br /><strong>Posted:</strong> 18&nbsp;September&nbsp;2004 at 2:25pm<br /><br />here is a mod you can do . its just cut and paste<br><br>Existing code<br>&#091;code&#093;<br><br>'If a username has been entered check that the password is correct<br>If (strUsername &lt;&gt; "" AND Request.Form("QUIK") = false) OR(Request.Form("QUIK") AND blnLongSecurityCode = false AND strUsername&lt;&gt; "") Then<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; 'Check the users session ID for security from hackers if the user code has been disabled<br>&nbsp;&nbsp;&nbsp; If blnLongSecurityCode = False Then Call checkSessionID(Request.Form("sessionID"))<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; 'Check security code to pervent hackers<br>&nbsp;&nbsp;&nbsp; If Session("lngSecurityCode") &lt;&gt;Trim(Mid(Request.Form("securityCode"), 1, 6)) AND blnLongSecurityCodeThen blnSecurityCodeOK = False<br><br>&nbsp;&nbsp;&nbsp; 'Read the various forums from the database<br>&nbsp;&nbsp;&nbsp; 'Initalise the strSQL variable with an SQL statement to query the database<br>&nbsp;&nbsp;&nbsp; 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 "<br>&nbsp;&nbsp;&nbsp; strSQL = strSQL &amp; "FROM " &amp; strDbTable &amp; "Author "<br>&nbsp;&nbsp;&nbsp; strSQL = strSQL &amp; "WHERE " &amp; strDbTable &amp; "Author.Username = '" &amp; strUsername &amp; "';"<br><br>&nbsp;&nbsp;&nbsp; 'Set the Lock Type for the records so that the record set is only locked when it is updated<br>&nbsp;&nbsp;&nbsp; rsCommon.LockType = 3<br><br><br>&nbsp;&nbsp;&nbsp; 'Query the database<br>&nbsp;&nbsp;&nbsp; rsCommon.Open strSQL, adoCon<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; 'If no record is returned then the login is incorrect<br>&nbsp;&nbsp;&nbsp; If rsCommon.EOF Then blnIncorrectLogin = true<br><br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; 'If the query has returned a value to the recordset then check the password is correct<br>&nbsp;&nbsp;&nbsp; If NOT rsCommon.EOF AND blnSecurityCodeOK Then<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'Only encrypt password if this is enabled<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; If blnEncryptedPasswords Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'Encryptpassword so we can check it against the encypted password in thedatabase<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'Read in the salt<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strPassword = strPassword &amp; rsCommon("Salt")<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'Encrypt the entered password<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strPassword = HashEncode(strPassword)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; End If<br><br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'Check the encrypted password is correct, if it is get the user ID and set a cookie<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; If strPassword = rsCommon("Password") Then<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'Read in theusers ID number and whether they want to be automactically logged inwhen they return to the forum<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; lngUserID = CLng(rsCommon("Author_ID"))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strUsername = rsCommon("Username")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'For extra security create a new user code for the user<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strUserCode = userCode(strUsername)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'Save the new usercode back to the database<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rsCommon.Fields("User_code") = strUserCode<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rsCommon.Update<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'Write acookie with the User ID number so the user logged in throughout theforum<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'Write thecookie with the name Forum containing the value UserID number<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Response.Cookies(strCookieName)("UID") = strUserCode<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'Write acookie saying if the user is browsing anonymously, 1 = Anonymous, 0 =Shown<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; If CBool(Request.Form("NS")) = False Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Cookies(strCookieName)("NS") = "1"'Anonymous <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Response.Cookies(strCookieName)("NS") = "0" 'Shown<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; End If<br><br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'If the userhas selected to be remebered when they next login then set the expirydate for the cookie for 1 year<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; If blnAutoLogin = True Then<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'Set the expiry date for 1 year<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'If no expiry date is set the cookie is deleted fromthe users system 20 minutes after they leave the forum<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Cookies(strCookieName).Expires =DateAdd("yyyy", 1, Now())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; End If<br><br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'Reset Server Objects<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rsCommon.Close<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Set rsCommon = Nothing<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; adoCon.Close<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Set adoCon = Nothing<br><br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'Go to thelogin test to make sure the user has cookies enabled on their browser<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'If this is aredierect form the email notify unsubscribe page to get the user to login then redirct back there<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; If Request.QueryString("M") = "Unsubscribe" Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Redirect("login_user_test.asp?TID=" &amp;Request.QueryString("TID") &amp; "&amp;FID=" &amp; intForumID &amp;"&amp;M=Unsubscribe")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'Redirect the user back to the forum they have just come from<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ElseIf intForumID &gt; 0 Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;]]>
   </description>
   <pubDate>Sat, 18 Sep 2004 14:25:58 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/error-with-usercode_topic11846_post65710.html#65710</guid>
  </item> 
  <item>
   <title><![CDATA[Error with usercode : Borg, this is a serious issue,...]]></title>
   <link>https://forums.webwiz.net/error-with-usercode_topic11846_post65706.html#65706</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=11550">theSCIENTIST</a><br /><strong>Subject:</strong> 11846<br /><strong>Posted:</strong> 18&nbsp;September&nbsp;2004 at 12:42pm<br /><br /><P>Borg, this is a serious issue, even thou I have not been affected by it on my currently deployed projects, it would be nice if you could release a patch, not just with files, but with a detailed explanation on how to manually patch in case we can't just replace our files (files with many modifications we made), as opposed to wait for the new v8.0 release.</P><P>Thx.</P>]]>
   </description>
   <pubDate>Sat, 18 Sep 2004 12:42:49 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/error-with-usercode_topic11846_post65706.html#65706</guid>
  </item> 
  <item>
   <title><![CDATA[Error with usercode : Thanks. I&amp;#039;ll will do that!...]]></title>
   <link>https://forums.webwiz.net/error-with-usercode_topic11846_post65640.html#65640</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=13661">FreeMen</a><br /><strong>Subject:</strong> 11846<br /><strong>Posted:</strong> 17&nbsp;September&nbsp;2004 at 6:17am<br /><br />Thanks. I'll will do that!]]>
   </description>
   <pubDate>Fri, 17 Sep 2004 06:17:41 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/error-with-usercode_topic11846_post65640.html#65640</guid>
  </item> 
  <item>
   <title><![CDATA[Error with usercode : It looks like there is a problem...]]></title>
   <link>https://forums.webwiz.net/error-with-usercode_topic11846_post65639.html#65639</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 11846<br /><strong>Posted:</strong> 17&nbsp;September&nbsp;2004 at 6:12am<br /><br />It looks like there is a problem if the user tries to login into their account before they activate it.<br><br>This will be corrected for the next version.<br><br>In the meantime ask your users to activate their accounts before logging in.<br>]]>
   </description>
   <pubDate>Fri, 17 Sep 2004 06:12:20 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/error-with-usercode_topic11846_post65639.html#65639</guid>
  </item> 
  <item>
   <title><![CDATA[Error with usercode : It has happend 9 times now. Always...]]></title>
   <link>https://forums.webwiz.net/error-with-usercode_topic11846_post65633.html#65633</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=13661">FreeMen</a><br /><strong>Subject:</strong> 11846<br /><strong>Posted:</strong> 17&nbsp;September&nbsp;2004 at 5:36am<br /><br /><P>It has happend 9 times now.</P><P>Always the code that differs.</P><P>And I have reupped the files..</P><P>My users CAN'T activate their account, 'cause of the error in the usercode!?</P>]]>
   </description>
   <pubDate>Fri, 17 Sep 2004 05:36:00 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/error-with-usercode_topic11846_post65633.html#65633</guid>
  </item> 
  <item>
   <title><![CDATA[Error with usercode : I can&amp;#039;t see how the code...]]></title>
   <link>https://forums.webwiz.net/error-with-usercode_topic11846_post65631.html#65631</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 11846<br /><strong>Posted:</strong> 17&nbsp;September&nbsp;2004 at 5:31am<br /><br />I can't see how the code can be changed in the way you mention.<br><br>Make sure you do not have any corrupted files by reuploading the files again.<br><br>Also make sure the user activates their account beofre trying to login.<br>]]>
   </description>
   <pubDate>Fri, 17 Sep 2004 05:31:01 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/error-with-usercode_topic11846_post65631.html#65631</guid>
  </item> 
  <item>
   <title><![CDATA[Error with usercode : Hi My users can&amp;#039;t activate...]]></title>
   <link>https://forums.webwiz.net/error-with-usercode_topic11846_post65628.html#65628</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=13661">FreeMen</a><br /><strong>Subject:</strong> 11846<br /><strong>Posted:</strong> 17&nbsp;September&nbsp;2004 at 4:19am<br /><br /><P>Hi</P><P>My users can't activate their accounts because the link they get in their mail is wrong?</P><P>Example:</P><P>The user get this: activate.asp?ID=ch018379117BB6 but the database says: ch01BD1CE9AF24 as the code???</P><P>What can I do?</P>]]>
   </description>
   <pubDate>Fri, 17 Sep 2004 04:19:05 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/error-with-usercode_topic11846_post65628.html#65628</guid>
  </item> 
 </channel>
</rss>