Profile work

This commit is contained in:
Steven Hildreth 2018-12-16 17:45:42 -06:00
parent 711f98b419
commit fc08c7fa75
2 changed files with 2 additions and 1 deletions

View file

@ -127,6 +127,7 @@ namespace Roadie.Api.Controllers
{
UserName = registerModel.Username,
RegisteredOn = DateTime.UtcNow,
DoUseHtmlPlayer = true,
Email = registerModel.Email
};

View file

@ -96,7 +96,7 @@ namespace Roadie.Library.Imaging
public static byte[] ImageDataFromUrl(string imageUrl)
{
if (!string.IsNullOrEmpty(imageUrl))
if (!string.IsNullOrEmpty(imageUrl) && !imageUrl.StartsWith("http", StringComparison.OrdinalIgnoreCase))
{
var dataString = imageUrl.Trim().Replace('-', '+')
.Replace("data:image/jpeg;base64,", "")