summaryrefslogtreecommitdiff
path: root/Userland/Utilities/su.cpp
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-09-12 07:02:17 -0700
committerAndreas Kling <kling@serenityos.org>2021-09-12 16:36:52 +0200
commitdf04283d6156182012cd13f8c6c8e60a0605da7e (patch)
treeec01b9a446855fe72d0c55b52de9b958ac0affc1 /Userland/Utilities/su.cpp
parent9e667453c7ebd7021a9203a7c8e3688887af0b48 (diff)
downloadserenity-df04283d6156182012cd13f8c6c8e60a0605da7e.zip
LibCore: Make Account::authenticate take a SecretString
To encourage users to use the SecretString API, change the API so that Account::authenticate only accepts a SecretString.
Diffstat (limited to 'Userland/Utilities/su.cpp')
-rw-r--r--Userland/Utilities/su.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/su.cpp b/Userland/Utilities/su.cpp
index c9290fd63c..d737f14129 100644
--- a/Userland/Utilities/su.cpp
+++ b/Userland/Utilities/su.cpp
@@ -58,7 +58,7 @@ int main(int argc, char** argv)
return 1;
}
- if (!account.authenticate(password.value().characters())) {
+ if (!account.authenticate(password.value())) {
warnln("Incorrect or disabled password.");
return 1;
}