fix: accept raw phone secret for personal registration

This commit is contained in:
richjohnrambo
2026-09-23 11:33:16 +08:00
parent ac20f1ed25
commit c4355ac236
2 changed files with 8 additions and 1 deletions
+3
View File
@@ -84,6 +84,9 @@ func TestRegistrationSecretForAccount(t *testing.T) {
if got := string(registrationSecretForAccount([]byte("+8613800138000:secret"), "abcxyz123456")); got != "abcxyz123456:secret" {
t.Fatalf("got %q", got)
}
if got := string(registrationSecretForAccount([]byte("13800138000:secret"), "abcxyz123456")); got != "abcxyz123456:secret" {
t.Fatalf("got %q", got)
}
}
func TestValidateAccountRegistrationTenantDefaultsEnterpriseFromSession(t *testing.T) {