Disabled Registration + Changed Welcome Message
This commit is contained in:
@@ -49,6 +49,11 @@ public class AccountRegistrationService
|
||||
{
|
||||
var reply = new RegisterReplyV2Dto();
|
||||
|
||||
reply.ErrorMessage = "Sign up only available through discord.";
|
||||
return reply;
|
||||
|
||||
/*
|
||||
|
||||
if (!_registrationUserAgentRegex.Match(ua).Success)
|
||||
{
|
||||
reply.ErrorMessage = "User-Agent not allowed";
|
||||
@@ -118,6 +123,7 @@ public class AccountRegistrationService
|
||||
RecordIpRegistration(ip);
|
||||
|
||||
return reply;
|
||||
*/
|
||||
}
|
||||
|
||||
private void RecordIpRegistration(string ip)
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user