Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static string GetIp()
- {
- return HttpContext.Connection.RemoteIpAddress.ToString();
- }
- public class UserProfile : Profile
- {
- protected override void Configure()
- {
- CreateMap<SecurityUserModel, User>()
- .ForMember(d => d.EmailConfirmed, a => a.MapFrom(d => true))
- .ForMember(d => d.LockoutEnabled, a => a.MapFrom(d => false))
- .ForMember(d => d.CreatorIp, a => a.MapFrom(d => GetIp()));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement