internal async Task ReLoadGravatar() { if (!String.IsNullOrEmpty(this.Email)) { this.FeedbackMessage.GravatarHash = GravatarHelper.CreateHash(this.Email); this.Gravatar = await GravatarHelper.LoadGravatar(this.FeedbackMessage.GravatarHash); } }
public async override Task <ClaimsPrincipal> CreateAsync(AppUser user) { var principal = await base.CreateAsync(user); ((ClaimsIdentity)principal.Identity).AddClaims(new [] { new Claim(OpenIdConnectConstants.Claims.Picture, GravatarHelper.CreateHash(user.Email)) }); return(principal); }
public string Resolve(AppUser source, object destination, string destMember, ResolutionContext context) { return(GravatarHelper.CreateHash(source.Email)); }