feat(auth): 登录注册 - 添加短信通知与组合验证支持

This commit is contained in:
ddCat committed 2026-09-22 23:46:15 +08:00
1 parent 6c013ebf7e
commit bc0d109428
55 files changed
+4013 -103

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
# Local transport extension
Upstream: `github.com/casdoor/go-sms-sender`, tag `v0.25.0`, commit
`af78ac0e42f4` (2024-11-29), Apache-2.0. The upstream Go source is retained;
this module is pinned using the parent module's local `replace` directive.
Canvas additions: `safe_http.go` exposes a context-bound, single-recipient,
single-attempt send with structured acceptance identifiers. It uses the upstream
SDKs for signing and payload construction, injects the host's outbound transport,
and strictly checks the raw provider response. Unknown results are never retried.
`tencent.go` additionally rejects missing response/status objects before dereferencing.
Only Aliyun and Tencent have the safe transport capability. Other upstream
providers are not exposed by Canvas. No delivery-receipt capability is claimed.
Before upgrading, run the host's SMS transport contract tests.