mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 09:03:58 +00:00
Changed to use a separate account for each email address.
This commit is contained in:
@@ -21,11 +21,13 @@ public class HandlerReqLogin : Handler
|
||||
public override async Task OnHandle(Connection connection, byte[] data, ushort seqNo)
|
||||
{
|
||||
var req = ReqLogin.Parser.ParseFrom(data);
|
||||
var account = AccountData.GetAccountByUid(1);
|
||||
var account = AccountData.GetAccountByComboToken(req.Token)
|
||||
?? AccountData.GetAccountByDispatchToken(req.Token)
|
||||
?? AccountData.GetAccountByUid(10001)
|
||||
?? AccountData.GetAccountByUid(1);
|
||||
if (account == null)
|
||||
{
|
||||
AccountData.CreateAccount("MIKU", 0, "");
|
||||
account = AccountData.GetAccountByUid(1);
|
||||
account = AccountData.CreateAccount("default@mikusb.local", 10001, "");
|
||||
if (account == null)
|
||||
{
|
||||
await connection.SendPacket(CmdIds.NtfLogout);
|
||||
|
||||
Reference in New Issue
Block a user