Skip to content

Commit 8a514b1

Browse files
committed
register supports sending user email (optional)
1 parent a441d52 commit 8a514b1

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Shared/LobbyClient/Protocol/Messages.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ public class Register
150150

151151
public string SteamAuthToken { get; set; }
152152

153+
public string Email { get; set; }
154+
153155
public long UserID { get; set; }
154156
}
155157

ZkLobbyServer/LoginChecker.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ public async Task<RegisterResponse> DoRegister(Register register, string ip)
179179
acc.SetPasswordHashed(register.PasswordHash);
180180
acc.SetName(register.Name);
181181
acc.SetAvatar();
182+
acc.Email = register.Email;
182183
if (info != null)
183184
{
184185
var existingBySteam = db.Accounts.FirstOrDefault(x => x.SteamID == info.steamid);

0 commit comments

Comments
 (0)