If team certificate file not found, propose to generate it

This commit is contained in:
nemunaire 2014-11-20 17:42:58 +01:00
parent 716e1e7ccd
commit 39ca8940e1
2 changed files with 3 additions and 1 deletions

View File

@ -22,5 +22,7 @@ if (is_file($VAR["misc_dir"]."/challenge_started"))
$template->assign("END", $VAR['end_challenge']);
}
if (!empty($VAR['misc_dir']))
$template->assign("MISC_DIR", $VAR['misc_dir']);
if (!empty($LANG))
$template->assign("LANG", $LANG);

View File

@ -23,7 +23,7 @@
<span class="glyphicon glyphicon-trash"></span></a>
<a href="/{$SALT_ADMIN}/certificate/get?name={$t->team_name}">
<span class="glyphicon glyphicon-floppy-save"></span></a>
{if not $t->revoked}
{if not $t->revoked && is_file("{$MISC_DIR}/pki/pkcs/{$t->team_name}.p12")}
<a href="/{$SALT_ADMIN}/certificate/revoke?name={$t->team_name}"
onclick="return confirm('Êtes-vous sûr de vouloir révoquer ce certificat ?')">
<span class="glyphicon glyphicon-remove"></span></a>