mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
User work
This commit is contained in:
parent
2a6f928902
commit
068f75f514
7 changed files with 118 additions and 18 deletions
|
@ -134,6 +134,17 @@ namespace PlexRequests.Core
|
|||
return CreateUser(username, password, new[] { UserClaims.User }, properties);
|
||||
}
|
||||
|
||||
public Guid? CreateUser(string username, string password, string[] claims)
|
||||
{
|
||||
return CreateUser(username, password, claims, null);
|
||||
}
|
||||
|
||||
public IEnumerable<string> GetAllClaims()
|
||||
{
|
||||
var properties = typeof(UserClaims).GetConstantsValues<string>();
|
||||
return properties;
|
||||
}
|
||||
|
||||
public bool UpdatePassword(string username, string oldPassword, string newPassword)
|
||||
{
|
||||
var users = Repo.GetAll();
|
||||
|
@ -175,6 +186,8 @@ namespace PlexRequests.Core
|
|||
|
||||
public interface ICustomUserMapper
|
||||
{
|
||||
Guid? CreateUser(string username, string password, string[] claims);
|
||||
IEnumerable<string> GetAllClaims();
|
||||
IEnumerable<UsersModel> GetUsers();
|
||||
Task<IEnumerable<UsersModel>> GetUsersAsync();
|
||||
UsersModel GetUser(Guid userId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue