updating from session to database

This commit is contained in:
jakani24
2024-04-04 21:56:58 +02:00
parent 3bf05569e3
commit 9fdd5289df
2 changed files with 7 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
<?php <?php
/*
require_once 'WebAuthn.php'; require_once 'WebAuthn.php';
try { try {
session_start(); session_start();
@@ -195,13 +196,12 @@ try {
header('Content-Type: application/json'); header('Content-Type: application/json');
print(json_encode($return)); print(json_encode($return));
} }
*/
?> ?>
<?php <?php
//with db: //with db:
/*
require_once 'WebAuthn.php'; require_once 'WebAuthn.php';
// Assuming you've already established a database connection here // Assuming you've already established a database connection here
@@ -280,5 +280,5 @@ try {
*/
?> ?>

View File

@@ -1,4 +1,5 @@
<?php <?php
/*
require_once 'WebAuthn.php'; require_once 'WebAuthn.php';
try { try {
session_start(); session_start();
@@ -200,7 +201,7 @@ try {
header('Content-Type: application/json'); header('Content-Type: application/json');
print(json_encode($return)); print(json_encode($return));
} }
*/
?> ?>
@@ -213,7 +214,7 @@ try {
<?php <?php
//with db: //with db:
/*
require_once 'WebAuthn.php'; require_once 'WebAuthn.php';
// Assuming you've already established a database connection here // Assuming you've already established a database connection here
@@ -297,5 +298,5 @@ try {
header('Content-Type: application/json'); header('Content-Type: application/json');
print(json_encode($return)); print(json_encode($return));
} }
*/
?> ?>