Added endpoint to update presentationInfos and added these info to the get

This commit is contained in:
Dominic Villemure
2024-12-02 08:21:50 -05:00
parent cd827588a1
commit 281219c975
13 changed files with 1707 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ public class GoogleUserInfo
[JsonPropertyName("verified_email")] public required bool VerifiedEmail { get; init; }
[JsonPropertyName("name")] public required string Name { get; init; }
[JsonPropertyName("given_name")] public required string GivenName { get; init; }
[JsonPropertyName("family_name")] public required string FamilyName { get; init; }
[JsonPropertyName("family_name")] public string FamilyName { get; init; } = string.Empty;
[JsonPropertyName("picture")] public required string Picture { get; init; }
}
@@ -90,7 +90,7 @@ public class LoginWithGoogleHandler(
if (user is null)
{
var generatedPassword = PasswordGenerator.GeneratePassword(8, 10);
var generatedPassword = PasswordGenerator.GeneratePassword(10, 12);
var generatedUser = new ApplicationUser
{
UserName = userInfo.Email,