diff options
author | vnugent <public@vaughnnugent.com> | 2024-02-29 21:23:26 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-02-29 21:23:26 -0500 |
commit | b679ddd4e647ac915febd0d5a5e488a1e8e48842 (patch) | |
tree | cf414be9a53342e8d59194198cde5bf3c2187fc1 /lib/Plugins.Essentials/src/Accounts | |
parent | 2b1314c1475e7e1831c691cf349cb89c66fa320c (diff) |
Squashed commit of the following:
commit 231e26e5c6731e6e156d7c0591518e84a3b82f5a
Author: vnugent <public@vaughnnugent.com>
Date: Thu Feb 29 20:59:42 2024 -0500
fix: #5 find and patch Windows compression bug and some deployment
commit d0bfe14e0a0e27172b8dd41f468265e651784837
Author: vnugent <public@vaughnnugent.com>
Date: Wed Feb 21 21:39:19 2024 -0500
fix: #4 fix readme licensing message for accuracy
commit 6f37f152fcd105e40af6689192a36b87eda95f51
Author: vnugent <public@vaughnnugent.com>
Date: Wed Feb 21 21:37:55 2024 -0500
fix: jwt hashalg sizing and public api for hashalg sizes
Diffstat (limited to 'lib/Plugins.Essentials/src/Accounts')
-rw-r--r-- | lib/Plugins.Essentials/src/Accounts/UserCreationRequest.cs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/Plugins.Essentials/src/Accounts/UserCreationRequest.cs b/lib/Plugins.Essentials/src/Accounts/UserCreationRequest.cs index e346af1..2f2ba91 100644 --- a/lib/Plugins.Essentials/src/Accounts/UserCreationRequest.cs +++ b/lib/Plugins.Essentials/src/Accounts/UserCreationRequest.cs @@ -1,5 +1,5 @@ /* -* Copyright (c) 2023 Vaughn Nugent +* Copyright (c) 2024 Vaughn Nugent * * Library: VNLib * Package: VNLib.Plugins.Essentials @@ -22,6 +22,8 @@ * along with this program. If not, see https://www.gnu.org/licenses/. */ +using System; + using VNLib.Utils.Memory; using VNLib.Plugins.Essentials.Users; @@ -40,7 +42,17 @@ namespace VNLib.Plugins.Essentials.Accounts public ulong Privileges { get; init; } = AccountUtil.MINIMUM_LEVEL; ///<inheritdoc/> - public string EmailAddress { get; init; } = string.Empty; + public string Username { get; init; } = string.Empty; + + /// <summary> + /// Obsolete: Use the Username property instead + /// </summary> + [Obsolete("Use the Username property instead")] + public string EmailAddress + { + get => Username; + init => Username = value; + } ///<inheritdoc/> public bool UseRawPassword { get; init; } |