import_users: generate client certificate

This commit is contained in:
Li Chen 2013-11-12 22:41:10 +01:00
parent ecd35df7af
commit c78d379527
2 changed files with 32 additions and 17 deletions

View file

@ -2,6 +2,8 @@
if(!defined('ONYX')) exit;
include 'certificate.php';
if (!empty($_FILES["inputFile"]['tmp_name']))
{
//TODO use a variable to define the path
@ -60,6 +62,11 @@ if (!empty($_FILES["inputFile"]['tmp_name']))
$team->members[] = $user;
}
}
if (!empty($team->team_name))
{
//TODO save the certificate subject
new_client($team->team_name);
}
}
}
erreur("Fichier XML importé avec succès.", "success");