X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=authserver%2Fauthd%2Fauthd.php;h=edd750e2cb9d3b27d93ee281e64f7f4072d0496f;hp=df57ed1809647bdef7c35cc1b9aae1dc8c1182f8;hb=5e7f6578979b4f696d271baffb3543f79e88dca8;hpb=da4ac26dcfd94c9f8b7e8e43f50f671bdd94dfd0 diff --git a/authserver/authd/authd.php b/authserver/authd/authd.php index df57ed1..edd750e 100644 --- a/authserver/authd/authd.php +++ b/authserver/authd/authd.php @@ -210,9 +210,10 @@ if($pid == -1) { $myga->setUser($username, $tokentype, "", $hexkey); $url = $myga->createUrl($username); + echo "Url was: $url\n"; if(!file_exists("$BASE_DIR/authserver/authd/otks")) mkdir("$BASE_DIR/authserver/authd/otks"); $otk = generateRandomString(); - system("qrencode -o $BASE_DIR/authserver/authd/otks/$otk.png $url"); + system("qrencode -o $BASE_DIR/authserver/authd/otks/$otk.png '$url'"); $sql = "update users set users_otk='$otk' where users_username='$username'"; $dbo = getDatabase(); @@ -380,7 +381,7 @@ if($pid == -1) { break; case MSG_GET_USERS: // TODO this needs to be better - $sql = "select * from users"; + $sql = "select * from users order by users_username"; $dbo = getDatabase(); $res = $dbo->query($sql);