najm-auth 6.3.0 → 6.3.1
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.
- package/dist/index.js +2 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -3792,6 +3792,8 @@ var AuthService = class AuthService2 {
|
|
|
3792
3792
|
status: body.status ?? "active",
|
|
3793
3793
|
emailVerified: false
|
|
3794
3794
|
});
|
|
3795
|
+
if (!body.email?.trim())
|
|
3796
|
+
return { ...user, emailSent: false };
|
|
3795
3797
|
const { emailSent } = await this.deliverInvitation(user.id, body.email, user.name, body.role);
|
|
3796
3798
|
return { ...user, emailSent };
|
|
3797
3799
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "najm-auth",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.1",
|
|
4
4
|
"description": "Authentication and authorization library for najm framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -96,10 +96,10 @@
|
|
|
96
96
|
"najm-core": "^3.1.0",
|
|
97
97
|
"najm-database": "^2.2.1",
|
|
98
98
|
"najm-guard": "^2.2.1",
|
|
99
|
-
"najm-i18n": "^2.
|
|
99
|
+
"najm-i18n": "^2.2.0",
|
|
100
100
|
"najm-cache": "^2.3.0",
|
|
101
|
-
"najm-email": "^3.1.
|
|
102
|
-
"najm-rate": "^3.
|
|
101
|
+
"najm-email": "^3.1.1",
|
|
102
|
+
"najm-rate": "^3.1.0",
|
|
103
103
|
"najm-validation": "^2.0.3",
|
|
104
104
|
"jsonwebtoken": "^9.0.3",
|
|
105
105
|
"jose": "^6.1.3",
|