Add authentication and authorization (#21)
Reviewed-on: #21
This commit was merged in pull request #21.
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
using AutoMapper;
|
||||
using GameIdeas.Shared.Dto;
|
||||
using GameIdeas.Shared.Enum;
|
||||
using GameIdeas.Shared.Model;
|
||||
|
||||
namespace GameIdeas.WebAPI.Profiles;
|
||||
|
||||
public class UserProfile : Profile
|
||||
{
|
||||
public UserProfile()
|
||||
{
|
||||
CreateMap<User, UserDto>()
|
||||
.ForMember(d => d.Id, o => o.MapFrom(s => s.Id))
|
||||
.ForMember(d => d.Username, o => o.MapFrom(s => s.Username))
|
||||
.ForMember(d => d.Password, o => o.MapFrom(s => s.Password))
|
||||
.ForMember(d => d.Role, o => o.MapFrom(s => s.Role))
|
||||
.ReverseMap();
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user