Compare commits
2 Commits
8cc2dd2330
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| e8124b26f4 | |||
| 45365a885c |
2
.gitmodules
vendored
2
.gitmodules
vendored
@@ -1,3 +1,3 @@
|
|||||||
[submodule "MareAPI"]
|
[submodule "MareAPI"]
|
||||||
path = MareAPI
|
path = MareAPI
|
||||||
url = https://git.lop-sync.com/huggingway/LopAPI.git
|
url = https://git.drgn.rocks/t0w0bi/ClubPenguinApi
|
||||||
|
|||||||
@@ -47,9 +47,14 @@ 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();
|
||||||
|
|
||||||
if (!_registrationUserAgentRegex.Match(ua).Success)
|
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";
|
reply.ErrorMessage = "User-Agent not allowed";
|
||||||
return reply;
|
return reply;
|
||||||
@@ -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