Ajout intégration de l'hybridAuthentification encore en état de code brut

Pas de tests

TODO: aller chercher les token et les id des authentifcation pour google, github, facebook, twitter ... Reste a tester et à décider pour les autres types d'authentification.
This commit is contained in:
Emmanuel ROY 2019-09-26 04:27:05 +02:00
commit 41f2c5820b
14 changed files with 355 additions and 1 deletions

View file

@ -0,0 +1,20 @@
<?php
namespace MVC\Classe;
class Session
{
static public function isRegistered()
{
if (isset($_SESSION['userProfile'])) {
return;
} else {
header("location : " . Url::link_rewrite(false, 'error', []));
die('Ooops, something was wrong...');
}
}
}