Files
ops-Gazelle/sections/user/2fa/complete.php
Spine b06aef8b31 call constants directly from templates
move emails/ to email/ (singular naming)
2021-01-05 21:08:55 +00:00

19 lines
325 B
PHP

<?php
View::show_header('Two-factor Authentication');
$UserID = (int)$_REQUEST['userid'];
if (!$UserID) {
error(404);
}
$keys = unserialize($DB->scalar("
SELECT Recovery FROM users_main WHERE ID = ?
", $UserID
));
echo G::$Twig->render('login/2fa-backup.twig', [
'keys' => $keys,
]);
View::show_footer();