- Your e-mail address is unverified
+ Your e-mail address is unverified.
@@ -105,11 +107,13 @@ async function verifyEmail() {
>Verification e-mail sent
+
+ Verification is currently unavailable.
@@ -123,6 +127,7 @@ async function verifyEmail() {
{
href="/signup"
class="link"
>Create an account
+
+ I forgot my password
diff --git a/src/auth.js b/src/auth.js
index c89ccd7..f4ac9c1 100755
--- a/src/auth.js
+++ b/src/auth.js
@@ -91,6 +91,10 @@ async function hashPassword(password) {
}
export async function sendEmailVerification(user, customEmail, trigger) {
+ if (!config.email.enabled) {
+ throw new HttpError('E-mail verification is disabled', 503);
+ }
+
if (!user) {
throw new HttpError('No user provided', 401);
}