summary refs log tree commit diff
path: root/ModAS.Server/AppServiceRegistration.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2023-12-31 16:38:20 +0100
committerRory& <root@rory.gay>2023-12-31 16:38:20 +0100
commit05289f61d7bd0650ef511cc92a8a657c493dce30 (patch)
treeed38ef598f9e37eaaf294b8864f361553869ee3c /ModAS.Server/AppServiceRegistration.cs
parentAdd auth, start of commit script (diff)
downloadModAS-05289f61d7bd0650ef511cc92a8a657c493dce30.tar.xz
Clean up swagger, clean up auth code HEAD github/master master
Diffstat (limited to '')
-rw-r--r--ModAS.Server/AppServiceRegistration.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ModAS.Server/AppServiceRegistration.cs b/ModAS.Server/AppServiceRegistration.cs

index 63dabba..b6d28e6 100644 --- a/ModAS.Server/AppServiceRegistration.cs +++ b/ModAS.Server/AppServiceRegistration.cs
@@ -6,7 +6,7 @@ using System.Text.Json.Serialization; namespace ModAS.Server; public class AppServiceRegistration { - private const string ValidChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~+/"; + private const string ValidChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; private const string ExtendedValidChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~+/"; [JsonPropertyName("as_token")] @@ -16,7 +16,7 @@ public class AppServiceRegistration { public string HomeserverToken { get; set; } = RandomNumberGenerator.GetString(ExtendedValidChars, RandomNumberGenerator.GetInt32(512, 1024)); [JsonPropertyName("id")] - public string Id { get; set; } = "ModAS-"+RandomNumberGenerator.GetString(ValidChars, 5); + public string Id { get; set; } = "ModAS-" + RandomNumberGenerator.GetString(ValidChars, 5); [JsonPropertyName("namespaces")] public NamespacesObject Namespaces { get; set; } = new() {