Release v0.6.0 #159

Merged
niggl merged 43 commits from dev into main 2021-03-17 17:58:21 +00:00
2 changed files with 6 additions and 1 deletions
Showing only changes of commit 6bb3ae8ba9 - Show all commits

View File

@ -28,7 +28,9 @@ if (typeof config.development !== "boolean") {
if (config.mailer_url == "" || config.mailer_key == "") {
errors++;
}
console.log(config.testing)
if (config.testing) {
console.log("Discovered testing env. Ignoring all mailing errors!")
}
function getPhoneCodeLocale(): CountryCode {
return (process.env.PHONE_COUNTRYCODE as CountryCode);
}

View File

@ -23,6 +23,7 @@ export class Mailer {
resetKey: token
});
} catch (error) {
if (Mailer.testing) { return true; }
throw new MailSendingError();
}
}
@ -39,6 +40,7 @@ export class Mailer {
selfserviceToken: token
});
} catch (error) {
if (Mailer.testing) { return true; }
throw new MailSendingError();
}
}
@ -55,6 +57,7 @@ export class Mailer {
selfserviceToken: token
});
} catch (error) {
if (Mailer.testing) { return true; }
throw new MailSendingError();
}
}