diff --git a/app/helpers/email_helper.php b/app/helpers/email_helper.php index 2364306..38c9a93 100644 --- a/app/helpers/email_helper.php +++ b/app/helpers/email_helper.php @@ -78,7 +78,7 @@ function sendTemplateEmail($to, $subject, $templateName, $variables, $config, $a try { $message = renderEmailTemplate($templateName, $variables, $options); - $fromDomain = $config['domain'] ?? ($_SERVER['HTTP_HOST'] ?? 'totalmeet.local'); + $fromDomain = $config['domain'] ?? ($_SERVER['HTTP_HOST'] ?? 'localhost'); $headers = array_merge([ 'From: noreply@' . $fromDomain, 'X-Mailer: PHP/' . phpversion(), diff --git a/app/templates/profile.php b/app/templates/profile.php index 7228155..0a34292 100644 --- a/app/templates/profile.php +++ b/app/templates/profile.php @@ -15,6 +15,7 @@ $rightsNames = array_filter($rightsNames, function ($label) { }); $rightsCount = count($rightsNames); $displayName = $name ?: $username ?: 'User profile'; +$profileUserIdForHooks = (int)($user['user_id'] ?? ($userId ?? 0)); $timezoneDisplay = ''; if ($timezoneName) { if ($timezoneOffset !== '') { @@ -35,7 +36,7 @@ if ($timezoneName) {

-

Personal details and access summary for this TotalMeet account.

+

Personal details and access summary for your account.

@@ -59,6 +60,15 @@ if ($timezoneName) { Edit profile + $app_root, + 'user' => $user, + 'profile_user_id' => $profileUserIdForHooks, + 'session_user_id' => class_exists('Session') && Session::isValidSession() ? (int)Session::getUserId() : 0, +]); +?>
@@ -117,10 +127,13 @@ if ($timezoneName) { - $subscription ?? null, 'app_root' => $app_root, - 'userId' => $user['id'] ?? null, + 'userId' => $profileUserIdForHooks, + 'profile_user_id' => $profileUserIdForHooks, ]); ?> diff --git a/plugins/register/README.md b/plugins/register/README.md index 9016850..4e775a3 100644 --- a/plugins/register/README.md +++ b/plugins/register/README.md @@ -30,7 +30,7 @@ Check if registration is enabled. ## Configuration -Enable/disable registration in `totalmeet.conf.php`: +Enable/disable registration in `.conf.php`: ```php 'registration_enabled' => true, ```