feat: Add email verification on signup

This commit is contained in:
Dries Augustyns
2026-01-02 15:41:50 +01:00
parent 6f3853de59
commit fb02051538
2 changed files with 39 additions and 0 deletions
+13
View File
@@ -318,6 +318,19 @@ export class NtfyService {
});
}
/**
* Notify about failed signup attempt with invalid email - LOW priority
*/
public static async notifyFailedSignupAttempt(email: string, reasons: string[]): Promise<void> {
const reasonText = reasons.join(', ');
await this.send({
title: 'Failed Signup - Invalid Email',
message: `Signup attempt blocked for email: ${email}\nReasons: ${reasonText}`,
priority: NtfyPriority.LOW,
tags: [NtfyTag.WARNING, NtfyTag.SHIELD],
});
}
/**
* Notify about new user account created via OAuth - LOW priority
*/