2 require_once("../lib/ga4php.php");
4 $dbfile = "/tmp/db.sqlite";
6 $ga = new GoogleAuthenticator($dbfile);
9 $key = $ga->createBase32Key();
11 $url = $ga->setupUser("someuser", $key);
13 system("qrencode -s 6 -o /tmp/file.unittest $url");
14 system("eog /tmp/file.unittest");
15 unlink("/tmp/file.unittest");