feat: add Kavenegar template guide and update PreRegistrationController to use appUrl

This commit is contained in:
hamed
2026-07-05 11:27:10 +03:30
parent 969dc9651f
commit 87d94801f8
3 changed files with 77 additions and 2 deletions
@@ -34,6 +34,7 @@ class PreRegistrationController extends BaseController
private readonly UserPasswordHasherInterface $hasher,
private readonly SmsService $sms,
private readonly LoggerInterface $logger,
private readonly string $appUrl,
) {}
#[Route('/api/v1/pre-registration', methods: ['POST'])]
@@ -160,7 +161,7 @@ class PreRegistrationController extends BaseController
[
'username' => $preReg->getMobile(),
'password' => $password,
'link' => 'https://clinic-pro.ddev.site/admin',
'link' => rtrim($this->appUrl, '/') . '/admin',
],
);
} catch (\Throwable $e) {