forked from ddrilling/AsbCloudServer
551c60c4ff
Rename some fields in DB.permission.
18 lines
533 B
C#
18 lines
533 B
C#
using AsbCloudApp.Data;
|
|
using System.Security.Claims;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AsbCloudApp.Services
|
|
{
|
|
public interface IAuthService
|
|
{
|
|
int ChangePassword(int idUser, string newPassword);
|
|
int ChangePassword(string userLogin, string newPassword);
|
|
Task<UserTokenDto> LoginAsync(string login,
|
|
string password, CancellationToken token = default);
|
|
|
|
string Refresh(ClaimsPrincipal user);
|
|
int Register(UserRegistrationDto userDto);
|
|
}
|
|
} |