From 0f8285983883048dbf19734c588473725c66f367 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 9 Jan 2025 21:36:40 +0100 Subject: Add NS.h file for CoreBoot, and open command. Signed-off-by: Amlal El Mahrouss --- dev/Kernel/src/User.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dev/Kernel/src/User.cc') 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; -- cgit v1.2.3