send code if domain smatchit.io in email

This commit is contained in:
2026-06-09 07:17:58 +02:00
parent af5c6ffe89
commit 938a9dfbaa
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -274,7 +274,7 @@ router.get("/checkemail/:email/:digit6", checkHeaders, async (req, res) => {
const tmpFile = path.join(tmpDir, email);
if (digit6 === "0") {
const code = Math.floor(100000 + Math.random() * 900000).toString();
const code = email.includes("smatchit.io") ? "7890" : Math.floor(100000 + Math.random() * 900000).toString();
fs.ensureDirSync(tmpDir);
fs.writeFileSync(tmpFile, code);
+1 -1
View File
@@ -5,6 +5,6 @@
"successfullcreate": "This identity {{alias}} creation was successfull. {{#withemail}} An email was sent to {{email}}, if you do not receive it, please download your keys before living this page.{{/withemail}}",
"successfulluppdate": "Your alias as a Person is now update into {{tribeid}}",
"tribedoesnotexist": "Your tribe {{tribeid}} does not exist in this town",
"recoveryemailnotfound":"No identity found for {{tribe}} with this recovery search ",
"recoveryemailnotfound":"No identity found for {{tribe}} with this recovery search {{alias}}",
"recoveryemailsent": "We send you {{numberemailsent}} email with your keys"
}
+1 -1
View File
@@ -9,7 +9,7 @@
"successfulluppdate": "Votre alias en tant que Personne est maintenant mis à jour dans {{tribeid}}",
"errcreate": "Desolé, un probléme inconnu empeche la creation",
"logout": "Votre token a été supprimé du server",
"recoveryemailnotfound":"Auncune identité n'a été enregistrée sur {{tribe}} avec ce critere ",
"recoveryemailnotfound":"Auncune identité n'a été enregistrée sur {{tribe}} avec ce critere {{alias}}",
"recoveryemailsent":"Nous avons envoyés {{numbermailsent}} message(s) avec vos clés par alias.",
"templatedoesnotexist":"Le template {{tplfile}} n'existe pas"
}