gcx/frontend/genex-mobile
hailin 9473512530 feat(auth): 邮箱注册完整实现 — Gmail SMTP + 邮件验证码全链路
后端 (auth-service):
- 新增 EmailVerification / EmailLog 实体 + TypeORM 映射
- Email 值对象:格式校验、小写归一化、脱敏展示
- Gmail SMTP Provider (nodemailer) + ConsoleEmailProvider (dev)
- EmailCodeService:Redis 缓存快速路径,与 SmsCodeService 对称
- EmailService:sendCode/verifyCode + 日限额 + 业务规则校验
- 新增端点:POST /auth/email/send / register-email / login-email / reset-password-email
- EMAIL_ENABLED 环境变量切换真实/控制台发送
- 数据库迁移:048_create_email_verifications.sql

前端 (genex-mobile):
- AuthService 新增 sendEmailCode / registerByEmail / loginByEmail / resetPasswordByEmail
- RegisterPage 根据 isEmail 参数自动切换 SMS/Email API 调用
- WelcomePage 邮箱注册按钮传递 isEmail:true 参数
- i18n 新增 register.errorEmailRequired(4语种)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 02:27:43 -08:00
..
android feat(android): APK versionCode 自动递增 — 每次编译自增,各环境独立计数 2026-03-03 09:09:13 -08:00
assets/images fix(branding): 统一Logo色调与App主色调 #6C5CE7 2026-02-23 18:12:35 -08:00
ios fix(branding): 重新生成全平台图标 — 基于更新后的Logo SVG v2 2026-02-22 08:00:19 -08:00
lib feat(auth): 邮箱注册完整实现 — Gmail SMTP + 邮件验证码全链路 2026-03-04 02:27:43 -08:00
.gitignore feat(android): APK versionCode 自动递增 — 每次编译自增,各环境独立计数 2026-03-03 09:09:13 -08:00
.metadata feat: Create genex-mobile app with coupon lifecycle management redesign 2026-02-11 17:57:16 -08:00
README.md feat: Create genex-mobile app with coupon lifecycle management redesign 2026-02-11 17:57:16 -08:00
analysis_options.yaml feat: Create genex-mobile app with coupon lifecycle management redesign 2026-02-11 17:57:16 -08:00
pubspec.yaml feat(genex-mobile): Token 持久化 — 登录状态跨重启保持 2026-03-04 02:01:27 -08:00

README.md

genex_consumer

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.