Skip to content

Commit f724a5a

Browse files
committed
move csrf_token code to match the 3 other new uses
1 parent 21bfe17 commit f724a5a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

interface/web/mail/mail_domain_edit.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,6 @@ function onShowEnd() {
154154
$app->tpl->setVar("client_server_id", $options_mail_servers);
155155
unset($options_mail_servers);
156156

157-
$csrf_token = $app->auth->csrf_token_get('mail_domain_del');
158-
$app->tpl->setVar('_csrf_id', $csrf_token['csrf_id']);
159-
$app->tpl->setVar('_csrf_key', $csrf_token['csrf_key']);
160157
}
161158

162159
/*
@@ -259,6 +256,10 @@ function onShowEnd() {
259256
$app->tpl->setVar('dkim_public', $rec['dkim_public'], true);
260257
if (!empty($rec['dkim_public'])) $app->tpl->setVar('dns_record', $dns_record, true);
261258

259+
$csrf_token = $app->auth->csrf_token_get('mail_domain_del');
260+
$app->tpl->setVar('_csrf_id', $csrf_token['csrf_id']);
261+
$app->tpl->setVar('_csrf_key', $csrf_token['csrf_key']);
262+
262263
$global_config = $app->getconf->get_global_config();
263264
$app->tpl->setVar('show_delete_on_forms', $global_config['misc']['show_delete_on_forms']);
264265

0 commit comments

Comments
 (0)