diff --git a/system/functions.php b/system/functions.php index 7a807c72..6fa0e6bc 100644 --- a/system/functions.php +++ b/system/functions.php @@ -1064,8 +1064,8 @@ function unsetSession($key) { unset($_SESSION[setting('core.session_prefix') . $key]); } -function csrf(): void { - CsrfToken::create(); +function csrf(bool $return = false): string { + return CsrfToken::create($return); } function csrfToken(): string { diff --git a/system/pages/account/change_email.php b/system/pages/account/change_email.php index 90f5b54d..811cebb4 100644 --- a/system/pages/account/change_email.php +++ b/system/pages/account/change_email.php @@ -93,21 +93,21 @@ else