diff options
| author | winter Sparkles | 2026-08-09 02:26:33 +0100 |
|---|---|---|
| committer | winter Sparkles | 2026-08-09 02:26:33 +0100 |
| commit | 3354d45762bbe0db33e3d26d8997e6f6624f24d7 (patch) | |
| tree | 4bef4bf59488f443ed54ff6e30002268836ac259 /Psso/Identity.php | |
| parent | 4bb659e1f7bb5850db5695a536428a9b71e3ffe5 (diff) | |
implement sessions and also log in/out
session data is stored in sqlite, not using php sessions
Diffstat (limited to 'Psso/Identity.php')
| -rw-r--r-- | Psso/Identity.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Psso/Identity.php b/Psso/Identity.php new file mode 100644 index 0000000..68272d4 --- /dev/null +++ b/Psso/Identity.php @@ -0,0 +1,12 @@ +<?php +namespace Psso; + +class Identity { + public protected(set) string $user; + public protected(set) array $groups; + + public function __construct(string $user, array $groups = []) { + $this->user = $user; + $this->groups = $groups; + } +} |
