aboutsummaryrefslogtreecommitdiff
path: root/plugins/VNLib.Plugins.Essentials.Accounts/src/Endpoints
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-02-14 14:44:04 -0500
committerLibravatar vnugent <public@vaughnnugent.com>2024-02-14 14:44:04 -0500
commit0d3612601ee2ff42cc72c9a4e29de66ea9cdc3fd (patch)
treee3f69f017a2ec80088fc1966a5efa88a51a4466a /plugins/VNLib.Plugins.Essentials.Accounts/src/Endpoints
parentdf7dc615532d3441f527374d18664c1a5a336de6 (diff)
Squashed commit of the following:
commit 2735201257cd22981f96b54b4a6120f44cb93c4c Author: vnugent <public@vaughnnugent.com> Date: Mon Feb 12 20:26:57 2024 -0500 refactor: update latest sql extensions commit eb3fea8181344e3550869f92b9643439053f79fe Author: vnugent <public@vaughnnugent.com> Date: Sun Feb 4 01:30:25 2024 -0500 submit pending changes
Diffstat (limited to 'plugins/VNLib.Plugins.Essentials.Accounts/src/Endpoints')
-rw-r--r--plugins/VNLib.Plugins.Essentials.Accounts/src/Endpoints/LoginEndpoint.cs6
-rw-r--r--plugins/VNLib.Plugins.Essentials.Accounts/src/Endpoints/PkiLoginEndpoint.cs4
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/VNLib.Plugins.Essentials.Accounts/src/Endpoints/LoginEndpoint.cs b/plugins/VNLib.Plugins.Essentials.Accounts/src/Endpoints/LoginEndpoint.cs
index ee16a93..57fd64c 100644
--- a/plugins/VNLib.Plugins.Essentials.Accounts/src/Endpoints/LoginEndpoint.cs
+++ b/plugins/VNLib.Plugins.Essentials.Accounts/src/Endpoints/LoginEndpoint.cs
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2023 Vaughn Nugent
+* Copyright (c) 2024 Vaughn Nugent
*
* Library: VNLib
* Package: VNLib.Plugins.Essentials.Accounts
@@ -136,7 +136,7 @@ namespace VNLib.Plugins.Essentials.Accounts.Endpoints
return VirtualClose(entity, webm, HttpStatusCode.UnprocessableEntity);
}
- using IUser? user = await Users.GetUserFromEmailAsync(loginMessage.UserName);
+ using IUser? user = await Users.GetUserFromUsernameAsync(loginMessage.UserName);
//Make sure account exists
if (webm.Assert(user != null, INVALID_MESSAGE))
@@ -303,7 +303,7 @@ namespace VNLib.Plugins.Essentials.Accounts.Endpoints
}
//recover user account
- using IUser? user = await Users.GetUserFromEmailAsync(upgrade.UserName!);
+ using IUser? user = await Users.GetUserFromUsernameAsync(upgrade.UserName!);
if (webm.Assert(user != null, MFA_ERROR_MESSAGE))
{
diff --git a/plugins/VNLib.Plugins.Essentials.Accounts/src/Endpoints/PkiLoginEndpoint.cs b/plugins/VNLib.Plugins.Essentials.Accounts/src/Endpoints/PkiLoginEndpoint.cs
index 7441805..99f2318 100644
--- a/plugins/VNLib.Plugins.Essentials.Accounts/src/Endpoints/PkiLoginEndpoint.cs
+++ b/plugins/VNLib.Plugins.Essentials.Accounts/src/Endpoints/PkiLoginEndpoint.cs
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2023 Vaughn Nugent
+* Copyright (c) 2024 Vaughn Nugent
*
* Library: VNLib
* Package: VNLib.Plugins.Essentials.Accounts
@@ -162,7 +162,7 @@ namespace VNLib.Plugins.Essentials.Accounts.Endpoints
}
//Get the user from the email address
- user = await _users.GetUserFromEmailAsync(authInfo.EmailAddress!, entity.EventCancellation);
+ user = await _users.GetUserFromUsernameAsync(authInfo.EmailAddress!, entity.EventCancellation);
if (webm.Assert(user != null, INVALID_MESSAGE))
{