Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

Removed redundant production email sending code and added pin notification for development mode.

Alan Young6241c20e2dbe
diff --git a/app/server/email/verification.go b/app/server/email/verification.go
index a94f911f..ff417ab9 100644
--- a/app/server/email/verification.go
+++ b/app/server/email/verification.go
@@ -21,11 +21,6 @@ func SendVerificationEmail(email string, pin string) error {
} else {
return sendEmailViaSES(email, subject, htmlBody, textBody)
}
-func SendVerificationEmail(email string, pin string) error {
- // Check if the environment is production
- if os.Getenv("GOENV") == "production" {
- // Production environment - send email using AWS SES
- // ... existing code ...
}
if os.Getenv("GOENV") == "development" {
@@ -37,6 +32,7 @@ func SendVerificationEmail(email string, pin string) error {
// Dump pin to log output
fmt.Printf("Development mode: Verification pin is %s for email %s\n", pin, email)
+
// Send notification
err := beeep.Notify("Verification Pin", fmt.Sprintf("Verification pin %s copied to clipboard %s", pin, email), "")
if err != nil {