<html> <head> <title>Log In With Two Step Verification</title> </head> <body> <div class="content"> <h2>Two Step Log In</h2> <p>The list shows the devices currently authorized to login using your account</p> <?php if (isset($revoked)) { if ($revoked) { echo "<h2>Successfully Revoked Device</h2>"; } else { echo "<h2>Failed to Revoke Device</h2>"; } } $devices = \Fr\LS::getDevices(); if (count($devices) == 0) { echo "<p>No devices are authorized to use your account without 2 Step Verification.</p>"; } else { echo "<table border='1' cellpadding='10px'>\n <thead>\n <th>Session ID</th>\n <th>Last Accessed</th>\n <th></th>\n </thead>\n <tbody>"; foreach ($devices as $device) { echo "<tr>\n <td>{$device['token']}</td>\n <td>{$device['last_access']}</td>\n <td><a href='?revoke_device={$device['token']}" . \Fr\LS::csrf("g") . "'>Revoke Access</a></td>\n </tr>"; } echo "</tbody></table>"; } ?> </div> </body> </html>