Nullify ISystemIdentityFactory

This commit is contained in:
Jordan Dominion
2023-11-25 12:33:14 -05:00
parent 18a378f0e5
commit b6b83ce5f0
@@ -3,8 +3,6 @@ using System.Threading.Tasks;
using Tgstation.Server.Host.Models;
#nullable disable
namespace Tgstation.Server.Host.Security
{
/// <summary>
@@ -32,7 +30,7 @@ namespace Tgstation.Server.Host.Security
/// <param name="username">The username of the user.</param>
/// <param name="password">The password of the user.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the operation.</param>
/// <returns>A <see cref="Task{TResult}"/> resulting in a new <see cref="ISystemIdentity"/> based on the given credentials.</returns>
Task<ISystemIdentity> CreateSystemIdentity(string username, string password, CancellationToken cancellationToken);
/// <returns>A <see cref="Task{TResult}"/> resulting in a new <see cref="ISystemIdentity"/> based on the given credentials on success, <see langword="null"/> on failure.</returns>
Task<ISystemIdentity?> CreateSystemIdentity(string username, string password, CancellationToken cancellationToken);
}
}