Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
Fix email change request going to incorrect email
Dave Earley1e20f055a635
diff --git a/backend/app/Helper/IdHelper.php b/backend/app/Helper/IdHelper.phpindex 1c52f80c3..9b579374c 100644--- a/backend/app/Helper/IdHelper.php+++ b/backend/app/Helper/IdHelper.php@@ -11,8 +11,6 @@ class IdHelperpublic const EVENT_PREFIX = 'e';public const ACCOUNT_PREFIX = 'acc';- public const SESSION_COOKIE_PREFIX = 'ord';-public static function randomPrefixedId(string $prefix, int $length = 13): string{return sprintf('%s%s', $prefix, Str::random($length));diff --git a/backend/app/Services/Handlers/User/UpdateMeHandler.php b/backend/app/Services/Handlers/User/UpdateMeHandler.phpindex 7bf42786d..07c1f4842 100644--- a/backend/app/Services/Handlers/User/UpdateMeHandler.php+++ b/backend/app/Services/Handlers/User/UpdateMeHandler.php@@ -45,7 +45,7 @@ readonly class UpdateMeHandlerif ($this->isChangingEmail($updateUserData, $existingUser)) {$updateArray['pending_email'] = $updateUserData->email;- $this->sendEmailChangeConfirmation($updateUserData, $existingUser);+ $this->sendEmailChangeConfirmation($existingUser);}}@@ -92,10 +92,10 @@ readonly class UpdateMeHandlerreturn $existingUser;}- private function sendEmailChangeConfirmation(UpdateMeDTO $updateUserData, UserDomainObject $existingUser): void+ private function sendEmailChangeConfirmation(UserDomainObject $existingUser): void{$this->mailer- ->to($updateUserData->email)+ ->to($existingUser->getEmail())->send(new ConfirmEmailChangeMail($existingUser, $this->encryptedPayloadService->encryptPayload(['id' => $existingUser->getId(),]))diff --git a/frontend/src/utilites/apiClient.ts b/frontend/src/utilites/apiClient.tsindex e5c02e972..f5c37c84e 100644--- a/frontend/src/utilites/apiClient.ts+++ b/frontend/src/utilites/apiClient.ts@@ -3,13 +3,11 @@ import {publicApi} from "../api/public-client.ts";export const setAuthToken = (token?: string | undefined | null) => {if (!token) {- console.log('No token provided');delete api.defaults.headers.common['Authorization'];delete publicApi.defaults.headers.common['Authorization'];return;}- console.log('Setting token:', token);api.defaults.headers.common['Authorization'] = `Bearer ${token}`;publicApi.defaults.headers.common['Authorization'] = `Bearer ${token}`;};