mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 13:27:36 +00:00
LibCore: Change Account::set_password to take a SecretString
This matches the API of Account::authenticate. The only caller to this API is the passwd utility, which already has the new password stored as a SecretString.
This commit is contained in:
parent
fcff6b7160
commit
4739982c66
3 changed files with 4 additions and 4 deletions
|
@ -45,7 +45,7 @@ public:
|
|||
|
||||
// Setters only affect in-memory copy of password.
|
||||
// You must call sync to apply changes.
|
||||
void set_password(const char* password);
|
||||
void set_password(SecretString const& password);
|
||||
void set_password_enabled(bool enabled);
|
||||
void set_home_directory(const char* home_directory) { m_home_directory = home_directory; }
|
||||
void set_uid(uid_t uid) { m_uid = uid; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue