Add informations on the admin user

This commit is contained in:
Sébastien André
2021-03-18 16:29:24 +01:00
parent 7caf1d7df2
commit 733e85507a
4 changed files with 11 additions and 1 deletions

View File

@@ -81,9 +81,11 @@ namespace skydiveLogs_api.DomainBusiness
{
var adminUser = new User
{
FirstName = "Admin",
LastName = "Admin",
Login = "administrator",
Password = "logsadmin",
Email = "no mail"
Email = "admin@nomail.com"
};
_userService.AddNewUser(adminUser, true);
}

View File

@@ -90,6 +90,14 @@ namespace skydiveLogs_api.Controllers
return result;
}
// PUT: api/User/5
//[HttpPut("{id}")]
//[EnableCors]
//public void Put(int id, [FromBody] UserReq value)
//{
// _userService.UpdateUser(id, _mapper.Map<User>(value));
//}
private string CreateToken(UserResp foundUser)
{
var key = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(_jwtConf.Passphrase));

Binary file not shown.