Example #1
0
        public void UpdateUserPassword(long userId, string password)
        {
            string passwordHash = LanLordzBaseController.ComputeHash(password);

            var u = this.GetUserById(userId);

            u.PasswordHash = passwordHash;

            this.db.SubmitChanges();
        }
Example #2
0
 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) }));
 }