diff --git a/.env.example b/.env.example index 748624a0..6640c190 100644 --- a/.env.example +++ b/.env.example @@ -78,7 +78,7 @@ SENDING_EMAIL_WELCOME_VOUCHER_ENABLED=false E_INVOICE_START_DATE="2025-07-01 00:00:00" -MAINTENANCE_MESSAGE_TITLE="We'll be back online on 00:00 1/7/2025" +MAINTENANCE_MESSAGE_TITLE="" # default empty, e.g. We'll be back online on 00:00 1/7/2025 MAINTENANCE_MESSAGE="Sorry for the inconvenience but we're performing some maintenance at the moment." OPENAI_API_KEY="" diff --git a/app/Classes/Modules/Accounts/ControllersLogic/UserEmailVerificationLogic.php b/app/Classes/Modules/Accounts/ControllersLogic/UserEmailVerificationLogic.php index 13a8bcc7..db5888e8 100644 --- a/app/Classes/Modules/Accounts/ControllersLogic/UserEmailVerificationLogic.php +++ b/app/Classes/Modules/Accounts/ControllersLogic/UserEmailVerificationLogic.php @@ -84,8 +84,7 @@ class UserEmailVerificationLogic extends AbstractControllerLogic $user = $attempt->user; $this->verifiesUser->execute($user); - // if (env('SENDING_EMAIL_WELCOME_VOUCHER_ENABLED', false)){ - if (app()->environment('production') && env('SENDING_EMAIL_WELCOME_VOUCHER_ENABLED', false)){ + if (app()->environment('production') && env('SENDING_EMAIL_WELCOME_VOUCHER_ENABLED', true)){ try{ //In case voucher got deleted unintentionally $voucher = $this->fetchesVoucher->execute(['code' => Vouchers::WELCOME_50_PERCENT_OFF]); if($voucher) $this->sendWelcomeVoucherEmail::dispatch($user, $voucher, 1); diff --git a/config/voucherify.php b/config/voucherify.php index c97fab5b..78c67c7e 100644 --- a/config/voucherify.php +++ b/config/voucherify.php @@ -3,6 +3,6 @@ return [ 'application_id' => env('VOUCHERIFY_APPLICATION_ID', ''), 'client_secret_key' => env('VOUCHERIFY_CLIENT_SECRET_KEY', ''), - 'version' => env('VOUCHERIFY_VERSION', ''), - 'url' => env('VOUCHERIFY_URL', ''), + 'version' => env('VOUCHERIFY_VERSION', 'v2018-08-01'), + 'url' => env('VOUCHERIFY_URL', 'https://as1.api.voucherify.io'), ];