Add JWT to enhance security
This commit is contained in:
@@ -4,8 +4,9 @@
|
||||
class Database {
|
||||
private $host = "127.0.0.1";
|
||||
private $db_name = "VOTRE_BDD";
|
||||
private $username = "VOTRE_USER";
|
||||
private $username = "VOTRE_USER"; // N'utilisez par "root"
|
||||
private $password = "VOTRE_MDP";
|
||||
public $jwt_secret = "VOTRE_CLE_SECRETE_POUR_JWT"; // Une passphrase est préférable
|
||||
public $conn;
|
||||
|
||||
// Récupérer la connexion
|
||||
|
||||
Reference in New Issue
Block a user