diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-09-12 07:02:17 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-12 16:36:52 +0200 |
commit | df04283d6156182012cd13f8c6c8e60a0605da7e (patch) | |
tree | ec01b9a446855fe72d0c55b52de9b958ac0affc1 /Userland/Utilities/su.cpp | |
parent | 9e667453c7ebd7021a9203a7c8e3688887af0b48 (diff) | |
download | serenity-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.cpp | 2 |
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; } |