diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-03-29 18:26:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-29 18:26:30 -0400 |
| commit | 72dd6091091a8352336c85a6799e3f3c24b849c5 (patch) | |
| tree | d715eb11f5d78dc2f0bea4c110d764ba6d791841 /MediaBrowser.Api/Session/SessionsService.cs | |
| parent | d9e7883fb50c765795c8bb6994c64a3245d00615 (diff) | |
| parent | 13e94a8b1b78d570a528eee65ff777412f0e83c8 (diff) | |
Merge pull request #1149 from LogicalPhallacy/ImprovedPasswordReset
Adds per user password reset
Diffstat (limited to 'MediaBrowser.Api/Session/SessionsService.cs')
| -rw-r--r-- | MediaBrowser.Api/Session/SessionsService.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Session/SessionsService.cs b/MediaBrowser.Api/Session/SessionsService.cs index f011e6e41..4109b12bf 100644 --- a/MediaBrowser.Api/Session/SessionsService.cs +++ b/MediaBrowser.Api/Session/SessionsService.cs @@ -245,6 +245,12 @@ namespace MediaBrowser.Api.Session { } + [Route("/Auth/PasswordResetProviders", "GET")] + [Authenticated(Roles = "Admin")] + public class GetPasswordResetProviders : IReturn<NameIdPair[]> + { + } + [Route("/Auth/Keys/{Key}", "DELETE")] [Authenticated(Roles = "Admin")] public class RevokeKey @@ -294,6 +300,11 @@ namespace MediaBrowser.Api.Session return _userManager.GetAuthenticationProviders(); } + public object Get(GetPasswordResetProviders request) + { + return _userManager.GetPasswordResetProviders(); + } + public void Delete(RevokeKey request) { _sessionManager.RevokeToken(request.Key); |
