Added a user OTK retrieval url.
[ga4php.git] / authserver / www / admin.php
index 5f2364d..bc61744 100644 (file)
@@ -35,9 +35,10 @@ On this page, you create users and manage their tokens and passwords. A few note
 <li> Passwords are *ONLY* for this page, if you assign a password to a user they can login here
 and edit anyone, including you
 <li> OTK/One-Time-Keys are the QRcode for provisioning a GA token, it can only be viewed once
-and once viewed is deleted. If you need a new one, you need to delete the user and re-create.
+and once viewed is deleted. If you need a new one, you need to re-create a key.
 <li> TOTP tokens are time based tokens that change every 30 seconds, HOTP tokens are event tokens
 that change everytime they are used or generated
+<li> In the OTK, the "Get (User URL)" link is a link you can send to a user to retrieve their key
        <?php 
 } 
 
@@ -84,7 +85,7 @@ foreach($users as $user) {
        else $haspass = "No";
        
        if($user["otk"]=="deleted") $otk = "OTK Was Not Picked Up";
-       else if($user["otk"]!="") $otk = "<a href=\"?action=getotk&username=$username&otk=".$user["otk"]."\">Get</a>";
+       else if($user["otk"]!="") $otk = "<a href=\"?action=getotk&username=$username&otk=".$user["otk"]."\">Get (admin)</a> <a href=\"index.php?gettoken&username=$username&otkid=".$user["otk"]."\">Get (User URL)</a>";
        else $otk = "Already Claimed";
        
        if($user["hastoken"]) $hastoken = "Yes <a href=\"?action=recreatehotptoken&username=$username\">Re-Create (HOTP)</a> <a href=\"?action=recreatetotptoken&username=$username\">Re-Create (TOTP)</a> <a href=\"?action=deletetoken&username=$username\">Delete</a>";
@@ -101,7 +102,7 @@ foreach($users as $user) {
 }
 ?>
 </table><br>
-<form method="post" action="?action=createuser">Create User(s) - Enter a comma seperated list of names: <input type="text" name="username" size="120"> <input type="submit" value="Create"></form>
+<form method="post" action="?action=createuser">Create User(s) - Enter a comma seperated list of usernames: <input type="text" name="username" size="120"> <input type="submit" value="Create"></form>
 
 <?php