Created JWT Authentication #25

Merged
rodude123 merged 5 commits from jwt-auth into master 2022-10-09 03:07:10 +01:00
Showing only changes of commit d9702e4ed7 - Show all commits

21
dist/api/config.php vendored
View File

@ -1,21 +0,0 @@
<?php
//////////// Config file /////////////////////
/// Used for storing important information ///
/// such as passwords, usernames etc. ///
//////////////////////////////////////////////
function dbConn(): PDO|string
{
$host = "localhost";
$dbName = "u987021215_cms";
$username = "u987021215_rodude123";
$password = "pFHS5qKhkyaDumgf";
try
{
return new PDO("mysql:host=$host;dbname=$dbName", $username, $password);
}
catch (PDOException $e)
{
return "Connection failed: " . $e->getMessage();
}
}