Update create_acc.php
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/*
|
||||||
require_once 'WebAuthn.php';
|
require_once 'WebAuthn.php';
|
||||||
try {
|
try {
|
||||||
session_start();
|
session_start();
|
||||||
@@ -196,16 +196,21 @@ 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
|
||||||
|
include "../../config.php";
|
||||||
|
$conn = new mysqli($DB_SERVERNAME, $DB_USERNAME, $DB_PASSWORD,$DB_DATABASE);
|
||||||
|
if ($conn->connect_error) {
|
||||||
|
$success=0;
|
||||||
|
die("Connection failed: " . $conn->connect_error);
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
// Read input parameters
|
// Read input parameters
|
||||||
$fn = filter_input(INPUT_GET, 'fn');
|
$fn = filter_input(INPUT_GET, 'fn');
|
||||||
@@ -279,6 +284,6 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user