feat: 实现邮箱验证码登录和腾讯云SES集成

- 实现邮箱验证码登录功能,支持自动注册新用户
- 修复验证码生成逻辑,确保前后端验证码一致
- 添加腾讯云SES webhook回调接口,支持6种邮件事件
- 配置ngrok内网穿透支持,允许外部访问
- 优化登录页面UI,采用全屏背景和居中布局
- 清理调试代码和未使用的导入
- 添加完整的配置文档和测试脚本
This commit is contained in:
AIGC Developer
2025-10-23 17:50:12 +08:00
parent 26d10a3322
commit a13ff70055
32 changed files with 1979 additions and 588 deletions

View File

@@ -11,14 +11,15 @@ export default defineConfig({
},
server: {
port: 5173,
host: 'test.yourdomain.com',
host: '0.0.0.0', // 允许外部访问
allowedHosts: true, // 允许所有主机访问
proxy: {
'/api': {
target: 'http://api.yourdomain.com:8080',
target: 'http://localhost:8080',
changeOrigin: true,
secure: false,
// 确保后端返回的 Set-Cookie 可被前端域接收与发送
cookieDomainRewrite: 'test.yourdomain.com',
cookieDomainRewrite: 'localhost',
cookiePathRewrite: '/',
configure: (proxy, _options) => {
proxy.on('error', (err, _req, _res) => {