mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Working on the beta releases page and also the user management
This commit is contained in:
parent
fb19ffe9e7
commit
185abcb1a5
11 changed files with 657 additions and 20 deletions
|
@ -99,7 +99,7 @@ namespace PlexRequests.Core
|
|||
return users.Any();
|
||||
}
|
||||
|
||||
private Guid? CreateUser(string username, string password, string[] claims = default(string[]), UserProperties properties = null)
|
||||
public Guid? CreateUser(string username, string password, string[] claims = default(string[]), UserProperties properties = null)
|
||||
{
|
||||
var salt = PasswordHasher.GenerateSalt();
|
||||
|
||||
|
@ -134,10 +134,6 @@ 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()
|
||||
{
|
||||
|
@ -186,7 +182,7 @@ namespace PlexRequests.Core
|
|||
|
||||
public interface ICustomUserMapper
|
||||
{
|
||||
Guid? CreateUser(string username, string password, string[] claims);
|
||||
Guid? CreateUser(string username, string password, string[] claims, UserProperties props);
|
||||
IEnumerable<string> GetAllClaims();
|
||||
IEnumerable<UsersModel> GetUsers();
|
||||
Task<IEnumerable<UsersModel>> GetUsersAsync();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue