aboutsummaryrefslogtreecommitdiff
path: root/plugins/VNLib.Plugins.Essentials.Accounts/src/AccountsEntryPoint.cs
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/VNLib.Plugins.Essentials.Accounts/src/AccountsEntryPoint.cs')
-rw-r--r--plugins/VNLib.Plugins.Essentials.Accounts/src/AccountsEntryPoint.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/VNLib.Plugins.Essentials.Accounts/src/AccountsEntryPoint.cs b/plugins/VNLib.Plugins.Essentials.Accounts/src/AccountsEntryPoint.cs
index ed79476..f4401a9 100644
--- a/plugins/VNLib.Plugins.Essentials.Accounts/src/AccountsEntryPoint.cs
+++ b/plugins/VNLib.Plugins.Essentials.Accounts/src/AccountsEntryPoint.cs
@@ -110,18 +110,18 @@ namespace VNLib.Plugins.Essentials.Accounts
return;
}
string username = args[uid + 1].Trim();
- string randomUserId = AccountManager.GetRandomUserId();
+ string randomUserId = AccountUtil.GetRandomUserId();
//Password as privatestring DANGEROUS to refs
using (PrivateString password = (PrivateString)args[pwd + 1].Trim()!)
{
//Hash the password
using PrivateString passHash = Passwords.Hash(password);
//Create the user
- using IUser user = await Users.CreateUserAsync(randomUserId, username, AccountManager.MINIMUM_LEVEL, passHash);
+ using IUser user = await Users.CreateUserAsync(randomUserId, username, AccountUtil.MINIMUM_LEVEL, passHash);
//Set active flag
user.Status = UserStatus.Active;
//Set local account
- user.SetAccountOrigin(AccountManager.LOCAL_ACCOUNT_ORIGIN);
+ user.SetAccountOrigin(AccountUtil.LOCAL_ACCOUNT_ORIGIN);
await user.ReleaseAsync();
}