Compare commits

...

2 Commits

Author SHA1 Message Date
e8124b26f4 Update submodules. 2025-09-11 01:27:58 +01:00
45365a885c Disabled Registration + Changed Welcome Message 2025-09-11 00:22:56 +00:00
3 changed files with 11 additions and 5 deletions

2
.gitmodules vendored
View File

@@ -1,3 +1,3 @@
[submodule "MareAPI"]
path = MareAPI
url = https://git.lop-sync.com/huggingway/LopAPI.git
url = https://git.drgn.rocks/t0w0bi/ClubPenguinApi

View File

@@ -47,9 +47,14 @@ public class AccountRegistrationService
public async Task<RegisterReplyV2Dto> RegisterAccountAsync(string ua, string ip, string hashedSecretKey)
{
var reply = new RegisterReplyV2Dto();
if (!_registrationUserAgentRegex.Match(ua).Success)
var reply = new RegisterReplyV2Dto();
reply.ErrorMessage = "Sign up only available through discord.";
return reply;
/*
REMINDER: Remove this later for my service!
if (!_registrationUserAgentRegex.Match(ua).Success)
{
reply.ErrorMessage = "User-Agent not allowed";
return reply;
@@ -118,6 +123,7 @@ public class AccountRegistrationService
RecordIpRegistration(ip);
return reply;
*/
}
private void RecordIpRegistration(string ip)

View File

@@ -80,7 +80,7 @@ public partial class MareHub : Hub<IMareHub>, IMareHub
dbUser.LastLoggedIn = DateTime.UtcNow;
await DbContext.SaveChangesAsync().ConfigureAwait(false);
await Clients.Caller.Client_ReceiveServerMessage(MessageSeverity.Information, "Welcome to Loporrit, Current Online Users: " + _systemInfoService.SystemInfoDto.OnlineUsers).ConfigureAwait(false);
await Clients.Caller.Client_ReceiveServerMessage(MessageSeverity.Information, "Welcome to Club Penguin Sync, Current Online Users: " + _systemInfoService.SystemInfoDto.OnlineUsers).ConfigureAwait(false);
return new ConnectionDto(new UserData(dbUser.UID, string.IsNullOrWhiteSpace(dbUser.Alias) ? null : dbUser.Alias))
{