mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 13:11:10 +00:00
Implements account login
This commit is contained in:
1 parent
abc2777357
commit
38829d64ff
23 files changed
+826
-7
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Application.Core.UsersManagement.Authentication.Queries.LoginUser;
|
||||
using Lumina.Contracts.Requests.Authentication;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Common.Mapping.Authentication;
|
||||
|
||||
/// <summary>
|
||||
/// Extension methods for converting <see cref="LoginRequest"/>.
|
||||
/// </summary>
|
||||
public static class LoginRequestMapping
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts <paramref name="request"/> to <see cref="LoginUserQuery"/>.
|
||||
/// </summary>
|
||||
/// <param name="request">The request to be converted.</param>
|
||||
/// <returns>The converted query.</returns>
|
||||
public static LoginUserQuery ToQuery(this LoginRequest request)
|
||||
{
|
||||
return new LoginUserQuery(
|
||||
request.Username,
|
||||
request.Password,
|
||||
request.TotpCode
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user