known bugs

Vincent Danen <[email protected]> Wed, 26 Nov 2003 16:54:18 -0700
Newsgroups gmane.comp.bug-tracking.anthill.devel
Message-ID <[email protected]>
Ok, there is a known bug with postgres, and probably new mysql installs 
as well, when you either create or the first new user tries to create 
an account.  I have to verify if this is a problem with new mysql 
installs yet, but at least on postgres, you need to try the account 
again, and on the second try it works.  Ie. if you hit back and 
re-submit, it works.

You can either grab the latest newuser.php from CVS or apply the 
following patch to newuser.php to get the fix:

--- newuser.php~        Wed Nov 26 16:51:31 2003
+++ newuser.php Wed Nov 26 16:51:31 2003
@@ -116,6 +116,10 @@
          $cpass    = md5($newpass);

          $id       = $db->nextID('users');
+        if ($id == "1")
+        {
+            $id     = $db->nextID('users');
+        }
          $query    = "INSERT INTO users (uid, name, uname, email, 
passwd, ";
          $query   .= "access, laston) VALUES ";
          $query   .= "('$id','" . addslashes(htmlspecialchars($rname)) 
. "',";

---
MandrakeSoft Security; http://www.mandrakesecure.net/
Online Security Resource Book; http://linsec.ca/
"lynx -source http://linsec.ca/vdanen.asc | gpg --import"
{FE6F2AFD : 88D8 0D23 8D4B 3407 5BD7  66F9 2043 D0E5 FE6F 2AFD}

_______________________________________________
Anthill-workers mailing list
Anthill-workers-+mQDA36h6dWw5LPnMra/[email protected]
http://vmlinuz.ca/mailman/listinfo/anthill-workers
PGP.sig (application/pgp-signature, 186 B) - not displayed