diff options
| author | transtrike <transtrike@gmail.com> | 2020-12-13 12:29:02 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2020-12-13 12:29:02 +0200 |
| commit | 3abbc13bcc55e68740564457fff455c849a1cd8a (patch) | |
| tree | 84eadad792ff05ba171c75de9e9a5376aa8cf752 /API/Service/UserService.cs | |
| parent | 3f9d6457360bba2eef24c013c5ba40fa92bf8cc7 (diff) | |
| download | DevHive-3abbc13bcc55e68740564457fff455c849a1cd8a.tar DevHive-3abbc13bcc55e68740564457fff455c849a1cd8a.tar.gz DevHive-3abbc13bcc55e68740564457fff455c849a1cd8a.zip | |
Ordering Models
Diffstat (limited to 'API/Service/UserService.cs')
| -rw-r--r-- | API/Service/UserService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/API/Service/UserService.cs b/API/Service/UserService.cs index d480bec..a1a9fde 100644 --- a/API/Service/UserService.cs +++ b/API/Service/UserService.cs @@ -2,7 +2,7 @@ using System.Threading.Tasks; using API.Database; using AutoMapper; using Data.Models.Classes; -using Data.Models.DTOs; +using Data.Models.DTOs.Identity; using Microsoft.AspNetCore.Mvc; using Data.Models.Options; using System.IdentityModel.Tokens.Jwt; @@ -47,7 +47,7 @@ namespace API.Service new Claim(ClaimTypes.Role, user.Role) // Authorize user by role }), Expires = DateTime.UtcNow.AddDays(7), - SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(key), SecurityAlgorithms.Sha512) + SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(key), SecurityAlgorithms.HmacSha512Signature) }; var tokenHandler = new JwtSecurityTokenHandler(); |
