Projekt

Obecné

Profil

« Předchozí | Další » 

Revize b513f9ee

Přidáno uživatelem Lukáš Vlček před asi 2 roky(ů)

Password in user ignored for JSON serialization

Zobrazit rozdíly:

Backend/Core/Entities/User.cs
3 3
using System.ComponentModel.DataAnnotations;
4 4
using System.Linq;
5 5
using System.Text;
6
using System.Text.Json.Serialization;
6 7
using System.Threading.Tasks;
7 8
using Core.Enums;
8 9

  
......
11 12
    public class User : BaseEntity
12 13
    {
13 14
        public string Username { get; set; }
15

  
16
        [JsonIgnore]
14 17
        public string Password { get; set; }
15 18
        public string Name { get; set; }
16 19
        public string Surname { get; set; }
17 20

  
18 21
        public ERole Role { get; set; }
19 22
    }
20
}
23
}

Také k dispozici: Unified diff