removed eronius comment
[ga4php.git] / unittests / createuser.php
1 <?php
2 require_once("../lib/ga4php.php");
3
4 $dbfile = "/tmp/db.sqlite";
5
6 $ga = new GoogleAuthenticator($dbfile);
7
8 $oldkey = "";
9 $key = $ga->createBase32Key();
10
11 $url = $ga->setupUser("someuser", $key);
12
13 system("qrencode -s 6 -o /tmp/file.unittest $url");
14 system("eog /tmp/file.unittest");
15 unlink("/tmp/file.unittest");
16
17 ?>