public void UpdateUserPassword(long userId, string password) { string passwordHash = LanLordzBaseController.ComputeHash(password); var u = this.GetUserById(userId); u.PasswordHash = passwordHash; this.db.SubmitChanges(); }
public static string EventImage(this UrlHelper url, EventImage image, int?size) { return(url.Action("Image", "Images", new { id = image.EventImageID, thumbnail = size, hash = LanLordzBaseController.CalculateScrapeBuster(image.ScrapeBusterKey, size) })); }