示例#1
0
 private static AccountRow GetSampleAccount()
 {
     return(new AccountRow
     {
         Id = Guid.NewGuid(),
         Username = Username,
         PasswordHash = Salt + SarUserService.HashPassword(Password, Salt),
         Email = "*****@*****.**",
         FirstName = "First",
         LastName = "Last"
     });
 }
 public ApiController(SarUserService service, ILogger log)
 {
     _userService = service;
     _log         = log;
 }
示例#3
0
 public AccountController(SarUserService service, IConfigService config)
 {
     _userService = service;
     _config      = config;
 }