feat: remove remaining use of session.toml

This commit is contained in:
daniel committed 2026-10-17 10:36:07 +02:00
1 parent e87bd358a6
commit 14c7099e3b
7 files changed
+5 -42

No files matched your search

+1 -16
View File
@@ -328,22 +328,7 @@ namespace user {
return false;
}
// ---- Session state and current user helpers ----
// Persist login session state after successful login.
// Current processes should use getuser() for their active username.
inline void set_session(const char* username) {
montauk::toml::Doc doc;
doc.init();
config::set_string(&doc, "session.username", username);
config::save("session", &doc);
doc.destroy();
}
// Clear the session (on logout).
inline void clear_session() {
montauk::fdelete("0:/config/session.toml");
}
// ---- Current user helpers ----
// Read the current process username into buf. Returns true if one is set.
inline bool get_session_username(char* buf, int bufSz) {