summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/src
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-09 21:36:40 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-09 21:36:40 +0100
commit0f8285983883048dbf19734c588473725c66f367 (patch)
treed9ccd3b55cc31b1a9e1178320bf602936742a6ff /dev/Kernel/src
parent0ea1827a392411eafae2ee9ebbfddbae92958f73 (diff)
Add NS.h file for CoreBoot, and open command.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/src')
-rw-r--r--dev/Kernel/src/User.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/dev/Kernel/src/User.cc b/dev/Kernel/src/User.cc
index bf68231c..a1c3dfa2 100644
--- a/dev/Kernel/src/User.cc
+++ b/dev/Kernel/src/User.cc
@@ -78,7 +78,7 @@ namespace Kernel
////////////////////////////////////////////////////////////
User::~User() = default;
- Bool User::Save(const usr_public_key_kind password_to_fill) noexcept
+ Bool User::Save(const UserPublicKey password_to_fill) noexcept
{
if (!password_to_fill ||
*password_to_fill == 0)
@@ -104,7 +104,7 @@ namespace Kernel
// then store password.
- rt_copy_memory(password, this->mUserToken, rt_string_len(password_to_fill));
+ rt_copy_memory(password, this->mUserKey, rt_string_len(password_to_fill));
delete[] password;
password = nullptr;
@@ -114,7 +114,7 @@ namespace Kernel
return Yes;
}
- Bool User::Matches(const usr_public_key_kind password_to_fill) noexcept
+ Bool User::Matches(const UserPublicKey password_to_fill) noexcept
{
if (!password_to_fill ||
*password_to_fill)
@@ -141,7 +141,7 @@ namespace Kernel
kcout << "User::Matches: Validating hashed passwords...\r";
// now check if the password matches.
- if (rt_string_cmp(password, this->mUserToken, rt_string_len(this->mUserToken)) == 0)
+ if (rt_string_cmp(password, this->mUserKey, rt_string_len(this->mUserKey)) == 0)
{
kcout << "User::Matches: Password is valid.\r";
return Yes;