Beispiel #1
0
 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");
 }
Beispiel #2
0
 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;
 }