Skip to content

Commit

Permalink
Merge pull request #426 from SCCapstone/424
Browse files Browse the repository at this point in the history
424: Fix pfp restrictions
  • Loading branch information
jbytes1027 authored Mar 22, 2024
2 parents a534313 + 5ae1318 commit 2e1c31d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FU.API/FU.API/Services/UserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public UserService(AppDbContext dbContext)
{
// Make sure its an image already in our blob storage
// Otherwise we are unure if the image is cropped, resized, and in the right format
if (!profileChanges.PfpUrl.Contains("storagefu.blob.core.windows.net/avatars"))
if (!profileChanges.PfpUrl.Contains("storagefu.blob.core.windows.net"))
{
throw new UnprocessableException("Invalid profile picture. The image must be uploaded to our storage system");
}
Expand Down

0 comments on commit 2e1c31d

Please sign in to comment.