add security question when deleting api-key

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-04-23 10:00:41 +02:00
parent d267f408eb
commit 7178b49101
6 changed files with 41 additions and 26 deletions

View File

@@ -169,12 +169,13 @@ class HTML
* Values which will be given to $yesfile. Format: array(variable1=>value1, variable2=>value2, variable3=>value3)
* @param string $replacer
* value of a possible existing string-replacer in the question
* @param array $back_link
*
* @author Froxlor team <team@froxlor.org> (2010-)
*
* @return string
*/
public static function askYesNo(string $text, string $yesfile, array $params = [], string $replacer = '')
public static function askYesNo(string $text, string $yesfile, array $params = [], string $replacer = '', array $back_link = [])
{
global $lng;
@@ -189,7 +190,8 @@ class HTML
Panel\UI::view('form/yesnoquestion.html.twig', [
'action' => $yesfile,
'url_params' => $params,
'question' => $text
'question' => $text,
'back_link' => $back_link
]);
exit();
}

View File

@@ -33,7 +33,7 @@ return [
'd.domain_ace' => [
'label' => $lng['domains']['domainname'],
'field' => 'domain_ace',
'callback' => [Domain::class, 'domainExternalLink'],
'callback' => [Domain::class, 'domainExternalLinkInfo'],
],
'd.documentroot' => [
'label' => $lng['panel']['path'],