masu is too stupid to use ulong
This commit is contained in:
parent
f4efb0f9a7
commit
d7836e95ef
3 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ public class User
|
|||
public DateTime TokenValidTime { get; set; } = DateTime.Now;
|
||||
|
||||
// Discord
|
||||
public long DiscordId { get; set; } = -1;
|
||||
public ulong DiscordId { get; set; }
|
||||
|
||||
// Date stuff
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
|
|
|
@ -115,7 +115,7 @@ public class DiscordOAuth2Service
|
|||
Email = getData.GetValue<string>("email"),
|
||||
FirstName = "User",
|
||||
LastName = "User",
|
||||
DiscordId = getData.GetValue<long>("id"),
|
||||
DiscordId = getData.GetValue<ulong>("id"),
|
||||
Status = UserStatus.DataPending
|
||||
};
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ public class UserService
|
|||
State = "",
|
||||
Status = UserStatus.Unverified,
|
||||
CreatedAt = DateTime.UtcNow,
|
||||
DiscordId = -1,
|
||||
DiscordId = 0,
|
||||
TotpEnabled = false,
|
||||
TotpSecret = "",
|
||||
UpdatedAt = DateTime.UtcNow,
|
||||
|
|
Loading…
Reference in a new issue