Disabled Registration + Changed Welcome Message
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user