Spaces:
Running
Running
Commit ·
35321eb
1
Parent(s): b4673e9
fix
Browse filesFiles changed (2)
11 unmodified lines12131415161711 unmodified linespublic string? DisplayName { get; set; }public bool? IsPremium { get; set; }public string? AvatarUrl { get; set; }}public class LoginDto11 unmodified lines1213141516171811 unmodified linespublic string? DisplayName { get; set; }public bool? IsPremium { get; set; }public string? AvatarUrl { get; set; }public string? Password { get; set; }}public class LoginDto
110 unmodified lines111112113114115116110 unmodified linesif (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;var updated = await _repo.UpdateAsync(user);110 unmodified lines111112113114115116117110 unmodified linesif (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