Spaces:
Running
Running
Commit ·
35321eb
1
Parent(s): b4673e9
fix
Browse filesFiles changed (2)
11 unmodified lines1213141516171811 unmodified lines public string? DisplayName { get; set; } public bool? IsPremium { get; set; } public string? AvatarUrl { get; set; } public string? Password { get; set; } }
public class LoginDto110 unmodified lines111112113114115116117110 unmodified lines if (dto.DisplayName is not null) user.DisplayName = dto.DisplayName; if (dto.IsPremium.HasValue) user.IsPremium = dto.IsPremium.Value; if (dto.AvatarUrl is not null) user.AvatarUrl = dto.AvatarUrl; if (!string.IsNullOrEmpty(dto.Password)) user.PasswordHash = HashPassword(dto.Password);
var updated = await _repo.UpdateAsync(user);
FlowAPI.Application/DTOs/User/UserDtos.cs+1
FlowAPI.Application/Services/UserService.cs+1