summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/src/User.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-02-04 09:41:02 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-02-04 09:41:02 +0100
commit73044afd9c61642b4c8217befa1ded3849685554 (patch)
tree1a7cd9ad6a6f7ab5db46914fb3deaab49f9898a1 /dev/Kernel/src/User.cc
parentf5b6f148a8c10673e3ef268d3fe76b31902c5930 (diff)
ADD: Important refactors regarding NeKernel.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/src/User.cc')
-rw-r--r--dev/Kernel/src/User.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/dev/Kernel/src/User.cc b/dev/Kernel/src/User.cc
index 1559c23e..f42ca69a 100644
--- a/dev/Kernel/src/User.cc
+++ b/dev/Kernel/src/User.cc
@@ -36,7 +36,7 @@ namespace Kernel
if (!password || !user)
return 1;
- kcout << "cred_construct_token: Hashing user password...\r";
+ kout << "cred_construct_token: Hashing user password...\r";
for (SizeT i_pass = 0UL; i_pass < length; ++i_pass)
{
@@ -48,7 +48,7 @@ namespace Kernel
password[i_pass] = cur_chr | (user->IsStdUser() ? kStdUserType : kSuperUserType);
}
- kcout << "cred_construct_token: Hashed user password.\r";
+ kout << "cred_construct_token: Hashed user password.\r";
return 0;
}
@@ -109,7 +109,7 @@ namespace Kernel
delete[] password;
password = nullptr;
- kcout << "User::Save: Saved password successfully...\r";
+ kout << "User::Save: Saved password successfully...\r";
return Yes;
}
@@ -138,16 +138,16 @@ namespace Kernel
return No;
}
- kcout << "User::Matches: Validating hashed passwords...\r";
+ kout << "User::Matches: Validating hashed passwords...\r";
// now check if the password matches.
if (rt_string_cmp(password, this->mUserKey, rt_string_len(this->mUserKey)) == 0)
{
- kcout << "User::Matches: Password matches.\r";
+ kout << "User::Matches: Password matches.\r";
return Yes;
}
- kcout << "User::Matches: Password doesn't match.\r";
+ kout << "User::Matches: Password doesn't match.\r";
return No;
}