feat: complete registration invitation and auth redesign

This commit is contained in:
richjohnrambo
2026-08-19 00:30:11 +08:00
parent e063e7879e
commit 219ecadf4c
47 changed files with 9014 additions and 224 deletions
+6
View File
@@ -58,6 +58,12 @@ type Validator interface {
TempAuthScheme() (string, error)
}
// CodeSender is an optional synchronous delivery capability used by product
// verification challenges which exist before a user account is created.
type CodeSender interface {
SendCode(tenantID t.TenantID, recipient, lang, scene, code string) error
}
func ValidateHostURL(origUrl string) (string, error) {
hostUrl, err := url.Parse(origUrl)
if err != nil {