public AuthController(IHttpContextAccessor accessor, ITimeService time, MilvanethDbContext context, IAuthentication auth, IPowService pow, ISrp6Service srp, IApiKeySignService api) { _accessor = accessor; _time = time; _context = context; _auth = auth; _pow = pow; _srp = srp; _api = api; _authToken = _context.KeyUsage.Single(x => x.Name == "Auth Token"); }
public AccountController(IHttpContextAccessor accessor, ITimeService time, MilvanethDbContext context, IAuthentication auth, IPowService pow, ISrp6Service srp, IApiKeySignService api, ITokenSignService token, IVerifyMailService mail, IRepository repo) { _accessor = accessor; _time = time; _context = context; _auth = auth; _pow = pow; _srp = srp; _api = api; _token = token; _mail = mail; _repo = repo; _userPrivilege = _context.PrivilegeConfig.Single(x => x.Name == "User"); _changeToken = _context.KeyUsage.Single(x => x.Name == "Password Change Token"); }
public DataController(IHttpContextAccessor accessor, ITimeService time, MilvanethDbContext context, IAuthentication auth, IPowService pow, ISrp6Service srp, IApiKeySignService api, ITokenSignService token, IVerifyMailService mail, IRepository repo) { _time = time; _context = context; _auth = auth; _token = token; _repo = repo; }