Removed deprecated methods from ITwoFactorLoginService (#18880)
This commit is contained in:
@@ -22,16 +22,6 @@ public interface ITwoFactorLoginService : IService
|
||||
/// </summary>
|
||||
Task<string?> GetSecretForUserAndProviderAsync(Guid userOrMemberKey, string providerName);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the setup info for a specific user or member and a specific provider.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The returned type can be anything depending on the setup providers. You will need to cast it to the type handled by
|
||||
/// the provider.
|
||||
/// </remarks>
|
||||
[Obsolete("Use IUserTwoFactorLoginService.GetSetupInfoAsync or IMemberTwoFactorLoginService.GetSetupInfoAsync. Scheduled for removal in Umbraco 16.")]
|
||||
Task<object?> GetSetupInfoAsync(Guid userOrMemberKey, string providerName);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all registered providers names.
|
||||
/// </summary>
|
||||
@@ -56,17 +46,4 @@ public interface ITwoFactorLoginService : IService
|
||||
/// Gets all the enabled 2FA providers for the user or member with the specified key.
|
||||
/// </summary>
|
||||
Task<IEnumerable<string>> GetEnabledTwoFactorProviderNamesAsync(Guid userOrMemberKey);
|
||||
|
||||
/// <summary>
|
||||
/// Disables 2FA with Code.
|
||||
/// </summary>
|
||||
[Obsolete("Use IUserTwoFactorLoginService.DisableByCodeAsync or IMemberTwoFactorLoginService.DisableByCodeAsync. Scheduled for removal in Umbraco 16.")]
|
||||
Task<bool> DisableWithCodeAsync(string providerName, Guid userOrMemberKey, string code);
|
||||
|
||||
/// <summary>
|
||||
/// Validates and Saves.
|
||||
/// </summary>
|
||||
[Obsolete("Use IUserTwoFactorLoginService.ValidateAndSaveAsync or IMemberTwoFactorLoginService.ValidateAndSaveAsync. Scheduled for removal in Umbraco 16.")]
|
||||
Task<bool> ValidateAndSaveAsync(string providerName, Guid userKey, string secret, string code);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user