public override bool ValidateUser(string username, string password) { AdminUser user = this.GetUserTasks().CreateOrUpdateAdminUser(username, username); if (user != null && !user.HasRole(AdminRole.ProfilingAdmin)) { AdminRole role = this.GetUserTasks().GetAdminRole(AdminRole.ProfilingAdmin); if (role != null) { user.AdminRoles.Add(role); } } return(true); }