feat: add Kavenegar template guide and update PreRegistrationController to use appUrl
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user