X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=archive%2Fauthserver_v1.0%2Fwww%2Findex.php;fp=archive%2Fauthserver_v1.0%2Fwww%2Findex.php;h=cff7fa316a07be6dd55ceaef9f4420d44ec3b0e7;hp=0000000000000000000000000000000000000000;hb=ee45b81ae7117097934cacc0c129565fddb49fc4;hpb=ac262b9b316777bed9e908b8b85200b8a14256f7 diff --git a/archive/authserver_v1.0/www/index.php b/archive/authserver_v1.0/www/index.php new file mode 100644 index 0000000..cff7fa3 --- /dev/null +++ b/archive/authserver_v1.0/www/index.php @@ -0,0 +1,107 @@ +getUsers(); + $realname = ""; + $otk = ""; + foreach($users as $user) { + if($user["username"] == $username) { + $realname = $user["realname"]; + $otk = $user["otk"]; + } + } + + if($realname == "") $realname = $username; + if($otk == "") { +?> + +Hello , we're sorry, but your One Time Key has
+already been picked up or you dont currently have a token. If you believe
+this in error, please contact the site admin immediately as it could mean
+your key has been compromised.
+ + + +Hello , we're sorry, but your One Time Key ID is not +the correct one, the URL you have been sent may be in error, please check with the site admin + + + +Hello , welcome to the One Time Key retreival site. Here is your
+One Time Key. Do not save this anywhere as it will compromise your account
+
  • Point your phones camera at the screen +
  • Watch the display until it locks onto the code +
  • Once the code has been scanned, the phone should return to the Google Authenticator with a 6 digit number presented, or a "get code" button.

    +
    + +Once you have the key, you may try logging into the user site here + + + +Hello , welcome to the One Time Key retreival site. Before we present
    +your key, you must have your phone ready to accept it as the key can only be presented once.
    +If your phone is not ready to accept the key, the key needs to be regenerated, so only proceed
    +if you phone is on, you have clicked on "scan account barcode" and the phone is ready to
    +scan the code.
    +
    +If you are ready to proceed, click here. + + + +

    Welcome to the GAAS User Site

    +".$_REQUEST["message"].""; +} +if(isset($_REQUEST["error"])) { + echo "".$_REQUEST["error"].""; +} + +if(!$loggedin) { +?> +
    +Username:
    +Token Code:
    + +
    + + + +Welcome, you have successfully logged into the
    +user site, but there is no content here to view.
    +Later, this site will be where you might resync your
    +token or change pin codes and the like
    + + +
    Logout + + +