@konplit-services/common 1.0.46 → 1.0.47
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/build/app.configs.d.ts
CHANGED
package/build/app.configs.js
CHANGED
|
@@ -207,6 +207,9 @@ class AppConfigs {
|
|
|
207
207
|
if (!this.env.EMAIL_TEMPLATE_RESET_PASSWORD) {
|
|
208
208
|
throw new Error("EMAIL_TEMPLATE_RESET_PASSWORD is required");
|
|
209
209
|
}
|
|
210
|
+
if (!this.env.TWO_FACTOR_AUTH_CHANGE) {
|
|
211
|
+
throw new Error("TWO_FACTOR_AUTH_CHANGE is required");
|
|
212
|
+
}
|
|
210
213
|
return {
|
|
211
214
|
forgot_password: this.env.EMAIL_TEMPLATE_FORGET_PASSWORD,
|
|
212
215
|
verify_account: this.env.EMAIL_TEMPLATE_VERIFY_ACCOUNT,
|
|
@@ -224,6 +227,7 @@ class AppConfigs {
|
|
|
224
227
|
invoice: this.env.EMAIL_TEMPLATE_INVOICE,
|
|
225
228
|
token: this.env.EMAIL_TEMPLATE_TOKEN,
|
|
226
229
|
reset_password: this.env.EMAIL_TEMPLATE_RESET_PASSWORD,
|
|
230
|
+
two_factor_auth_change: this.env.TWO_FACTOR_AUTH_CHANGE,
|
|
227
231
|
};
|
|
228
232
|
}
|
|
229
233
|
getCloudinaryKey() {
|
|
@@ -7,5 +7,6 @@ export declare enum EmailValidationTypes {
|
|
|
7
7
|
FORGETPASSWORD = "FORGETPASSWORD",
|
|
8
8
|
RESETPASSORD = "RESETPASSWORD",
|
|
9
9
|
ACCOUNTVERIFIED = "ACCOUNTVERIFIED",
|
|
10
|
-
TWO_FACTOR_VALIDATION = "
|
|
10
|
+
TWO_FACTOR_VALIDATION = "TWO_FACTOR_VALIDATION",
|
|
11
|
+
TWO_FACTOR_AUTHS_CHANGE = "TWO_FACTOR_AUTHS_CHANGE"
|
|
11
12
|
}
|
|
@@ -12,5 +12,6 @@ var EmailValidationTypes;
|
|
|
12
12
|
EmailValidationTypes["FORGETPASSWORD"] = "FORGETPASSWORD";
|
|
13
13
|
EmailValidationTypes["RESETPASSORD"] = "RESETPASSWORD";
|
|
14
14
|
EmailValidationTypes["ACCOUNTVERIFIED"] = "ACCOUNTVERIFIED";
|
|
15
|
-
EmailValidationTypes["TWO_FACTOR_VALIDATION"] = "
|
|
15
|
+
EmailValidationTypes["TWO_FACTOR_VALIDATION"] = "TWO_FACTOR_VALIDATION";
|
|
16
|
+
EmailValidationTypes["TWO_FACTOR_AUTHS_CHANGE"] = "TWO_FACTOR_AUTHS_CHANGE";
|
|
16
17
|
})(EmailValidationTypes = exports.EmailValidationTypes || (exports.EmailValidationTypes = {}));
|