Skip to content

Commit

Permalink
Merge pull request #25 from iTeam-S/env-prod
Browse files Browse the repository at this point in the history
[IMP] Using env in auth
  • Loading branch information
gaetan1903 authored Mar 3, 2022
2 parents 78123d5 + a0fe56b commit 4d50bf7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions models/index_model.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php
/*test if the it can connect to the DATABASE*/
/*fetch the DATABASE*/
include('/var/www/env.php');
function dbconnect()
{
$servername = "iteam-s.mg";
$username = "";
$password = "";
$username = $_ENV['ITEAMS_DB_USER'];
$password = $_ENV["ITEAMS_DB_PASSWORD"];
$pdb="mysql:host=$servername;dbname=ITEAMS;utf8mb4";

try
Expand Down

0 comments on commit 4d50bf7

Please sign in to comment.