add exception filter when user not connected default to needing authentication and apply anonymous to some actions add user in get requests add user relation in link, comment and vote signup and in are ok now!
14 lines
231 B
C#
14 lines
231 B
C#
using System;
|
|
using HN.Application;
|
|
using Microsoft.AspNetCore.Identity;
|
|
|
|
namespace HN.Infrastructure
|
|
{
|
|
public sealed class User : IdentityUser<Guid>, IUser
|
|
{
|
|
public User(string userName) : base(userName)
|
|
{
|
|
|
|
}
|
|
}
|
|
} |