Disabled Registration + Changed Welcome Message

This commit is contained in:
2025-09-11 00:22:56 +00:00
parent 8cc2dd2330
commit 45365a885c
2 changed files with 7 additions and 1 deletions

View File

@@ -48,6 +48,11 @@ public class AccountRegistrationService
public async Task<RegisterReplyV2Dto> RegisterAccountAsync(string ua, string ip, string hashedSecretKey) public async Task<RegisterReplyV2Dto> RegisterAccountAsync(string ua, string ip, string hashedSecretKey)
{ {
var reply = new RegisterReplyV2Dto(); var reply = new RegisterReplyV2Dto();
reply.ErrorMessage = "Sign up only available through discord.";
return reply;
/*
if (!_registrationUserAgentRegex.Match(ua).Success) if (!_registrationUserAgentRegex.Match(ua).Success)
{ {
@@ -118,6 +123,7 @@ public class AccountRegistrationService
RecordIpRegistration(ip); RecordIpRegistration(ip);
return reply; return reply;
*/
} }
private void RecordIpRegistration(string ip) private void RecordIpRegistration(string ip)

View File

@@ -80,7 +80,7 @@ public partial class MareHub : Hub<IMareHub>, IMareHub
dbUser.LastLoggedIn = DateTime.UtcNow; dbUser.LastLoggedIn = DateTime.UtcNow;
await DbContext.SaveChangesAsync().ConfigureAwait(false); 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)) return new ConnectionDto(new UserData(dbUser.UID, string.IsNullOrWhiteSpace(dbUser.Alias) ? null : dbUser.Alias))
{ {