msg("Driver.User.Internal.Name"); } public function auth(string $user, string $password): bool { try { $hash = Arsse::$db->userPasswordGet($user); } catch (Exception $e) { return false; } if ($password==="" && $hash==="") { return true; } return password_verify($password, $hash); } public function userExists(string $user): bool { return Arsse::$db->userExists($user); } public function userAdd(string $user, string $password = null): string { return Arsse::$db->userAdd($user, $password); } public function userRemove(string $user): bool { return Arsse::$db->userRemove($user); } public function userList(): array { return Arsse::$db->userList(); } public function userPasswordSet(string $user, string $newPassword = null, string $oldPassword = null): string { return Arsse::$db->userPasswordSet($user, $newPassword); } }