@tmlmobilidade/interfaces 20250506.1603.52 → 20250506.1908.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
import { roles, sessions, users, verificationTokens } from '../../interfaces/index.js';
|
|
3
3
|
import { emailProvider } from '../email/email.js';
|
|
4
|
-
import { HttpException, HttpStatus } from '@tmlmobilidade/lib';
|
|
4
|
+
import { getAppBaseUrl, HttpException, HttpStatus } from '@tmlmobilidade/lib';
|
|
5
5
|
import { AsyncSingletonProxy, Dates, generateRandomString, generateRandomToken, getPermission } from '@tmlmobilidade/utils';
|
|
6
6
|
import bcrypt from 'bcryptjs';
|
|
7
7
|
/* * */
|
|
@@ -122,7 +122,7 @@ class AuthProvider {
|
|
|
122
122
|
throw new HttpException(HttpStatus.INTERNAL_SERVER_ERROR, 'Error creating verification token');
|
|
123
123
|
}
|
|
124
124
|
emailProvider.send({
|
|
125
|
-
html: `<p>Click the link below to verify your email: <a target="_blank" href="${
|
|
125
|
+
html: `<p>Click the link below to verify your email: <a target="_blank" href="${getAppBaseUrl('auth')}/verification?token=${verification_token}">Verify Email</a></p>`,
|
|
126
126
|
subject: 'Verify your email',
|
|
127
127
|
to: createUserDto.email,
|
|
128
128
|
});
|
package/package.json
CHANGED