Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu committed Nov 20, 2024
1 parent f5dc57b commit cd53fb0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/CleanAspire.Api/CleanAspire.Api.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@
}
},
"example": {
"email": "Alisha67@gmail.com",
"email": "Berry_Lesch0@yahoo.com",
"password": "P@ssw0rd!"
}
},
Expand Down Expand Up @@ -920,7 +920,7 @@
}
},
"example": {
"Email": "Jacey_Mitchell@hotmail.com",
"Email": "Burnice81@hotmail.com",
"Password": "P@ssw0rd!",
"Nickname": "exampleNickname",
"Provider": "Local",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static IEndpointRouteBuilder MapIdentityApiAdditionalEndpoints<TUser>(thi
}

return TypedResults.Ok(await CreateInfoResponseAsync(user, userManager));
}).Accepts<ProfileRequest>("application/x-www-form-urlencoded")
}).Accepts<ProfileRequest>("multipart/form-data")
.DisableAntiforgery()
.WithMetadata(new ConsumesAttribute("multipart/form-data")).WithSummary("Update user profile information.")
.WithDescription("Allows users to update their profile, including username, email, nickname, avatar, time zone, and language code.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
{
request.AddOrReplacePart("superiorId", "text/plain", model.SuperiorId);
}
request.AddOrReplacePart("tenantId", "text/plain", model.TenantId ?? string.Empty);
if (browserFile != null)
{
var filename = browserFile.Name;
Expand Down

0 comments on commit cd53fb0

Please sign in to comment.