screensaver: allow using the system password to unlock

This replaces the non-functioning "Network password" option that was
never implemented.

Change-Id: I9b7362f4e05d7f1a4be321e1a9aade62559794d2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9009
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Chris Roberts
2025-02-19 04:21:38 +00:00
committed by waddlesplash
parent 8a1adae8b3
commit c10ecdf570
5 changed files with 38 additions and 22 deletions
@@ -56,9 +56,9 @@ public:
bigtime_t PasswordTime() const { return fPasswordTime; }
const char* Password() { return fPassword.String(); }
const char* LockMethod() { return fLockMethod.String(); }
bool IsNetworkPassword()
{ return strcmp(fLockMethod.String(), "custom")
!= 0; }
bool UseSystemPassword()
{ return strcmp(fLockMethod.String(), "system")
== 0; }
const char* ModuleName() { return fModuleName.String(); }
status_t GetModuleState(const char* name,
@@ -84,7 +84,7 @@ public:
{ fPasswordTime = time; }
void SetPassword(const char* password)
{ fPassword = password; }
// Cannot set network password from here.
// Cannot set system password from here.
void SetLockMethod(const char* method)
{ fLockMethod = method; }
void SetModuleName(const char* name)