1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 00:17:45 +00:00

LibCore: Add query for all accounts and groups

This commit is contained in:
ne0ndrag0n 2022-10-15 00:40:51 -04:00 committed by Andrew Kaster
parent 58e9262ff1
commit 9ddb86f7db
4 changed files with 66 additions and 0 deletions

View file

@ -35,6 +35,7 @@ public:
static ErrorOr<Account> self(Read options = Read::All);
static ErrorOr<Account> from_name(StringView username, Read options = Read::All);
static ErrorOr<Account> from_uid(uid_t uid, Read options = Read::All);
static ErrorOr<Vector<Account>> all(Read options = Read::All);
bool authenticate(SecretString const& password) const;
ErrorOr<void> login() const;