DefaultPasswordResetProvider.cs 658 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Threading.Tasks;
  3. using MediaBrowser.Controller.Authentication;
  4. using MediaBrowser.Controller.Entities;
  5. namespace Emby.Server.Implementations.Library
  6. {
  7. public class DefaultPasswordResetProvider : IPasswordResetProvider
  8. {
  9. public string Name => "Default Password Reset";
  10. public bool IsEnabled => true;
  11. // set our default timeout to an hour since we'll be making the PIN it generates a little less fragile
  12. public TimeSpan PasswordResetTimeout => new TimeSpan(1,0,0);
  13. public Task ResetPassword(User user)
  14. {
  15. throw new NotImplementedException();
  16. }
  17. }
  18. }