small change to add hardware tokens to database.
authorpaulr <me@pjr.cc>
Mon, 7 Feb 2011 14:21:25 +0000 (01:21 +1100)
committerpaulr <me@pjr.cc>
Mon, 7 Feb 2011 14:21:25 +0000 (01:21 +1100)
authserver/lib/lib.php

index 76af285..6ae1d81 100644 (file)
@@ -87,6 +87,8 @@ function getDatabase()
                $dbobject->query($sql);
                $sql = 'CREATE TABLE "radclients" ("rad_id" INTEGER PRIMARY KEY AUTOINCREMENT,"rad_name" TEXT, "rad_ip" TEXT, "rad_secret" TEXT, "rad_desc" TEXT);';
                $dbobject->query($sql);
+               $sql = 'CREATE TABLE "hardwaretokens" ("tok_id" INTEGER PRIMARY KEY AUTOINCREMENT,"tok_name" TEXT, "tok_key" TEXT, "tok_type" TEXT);';
+               $dbobject->query($sql);
        }
        
        return $dbobject;