Add informations on the admin user
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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.
Binary file not shown.
Reference in New Issue
Block a user