mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
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.
This commit is contained in:
parent
9e667453c7
commit
df04283d61
Notes:
sideshowbarker
2024-07-18 04:08:17 +09:00
Author: https://github.com/bgianfo
Commit: df04283d61
Pull-request: https://github.com/SerenityOS/serenity/pull/9972
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/petelliott
5 changed files with 7 additions and 6 deletions
|
@ -90,7 +90,7 @@ int main(int argc, char** argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (!target_account.authenticate(current_password.value().characters())) {
|
||||
if (!target_account.authenticate(current_password.value())) {
|
||||
warnln("Incorrect or disabled password.");
|
||||
warnln("Password for user {} unchanged.", target_account.username());
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue