2) a "hasToken" method for determining if a user has a token or not
3) implement googles key integrity algorithm thing
4) make a better example
-5) rename lib.php to something more appropriate
Maybe:
Move to exceptions
<?php
// ok, so this will be our overloading class
-require_once("../../lib/lib.php");
+require_once("../../lib/ga4php.php");
class myGoogleAuth extends GoogleAuthenticator {
<?php
-require_once("../../lib/lib.php");
+require_once("../../lib/ga4php.php");
// define our token class
class myGA extends GoogleAuthenticator {
}
}
-?>
\ No newline at end of file
+?>
/*
* This file just shows a simple example of how to extend the GoogleAuthenticator schema
*/
-require_once("../../lib/lib.php");
+require_once("../../lib/ga4php.php");
/* we now define the three methods we have to define
}
// and thats it...
-?>
\ No newline at end of file
+?>
<?php
-require_once("../lib/lib.php");
+require_once("../lib/ga4php.php");
// just in case
echo "Failed: INCORRECT\n";
}
-?>
\ No newline at end of file
+?>
<?php
-require_once("../lib/lib.php");
+require_once("../lib/ga4php.php");
$ga = new GoogleAuthenticator("/dev/null");
}
echo "Last key: $key\n";
-?>
\ No newline at end of file
+?>
<?php
-require_once("../lib/lib.php");
+require_once("../lib/ga4php.php");
$ga = new GoogleAuthenticator("/dev/null");
<?php
-require_once("../lib/lib.php");
+require_once("../lib/ga4php.php");
$dbfile = "/tmp/db.sqlite";
system("eog /tmp/file.unittest");
unlink("/tmp/file.unittest");
-?>
\ No newline at end of file
+?>