implemented logout

This commit is contained in:
2025-09-28 16:29:24 -06:00
parent 56792596bb
commit 715ea29c39
7 changed files with 47 additions and 10 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ func TopPage(ctxt ui.AmContext) (string, any, error) {
ctxt.VarMap().Set("amsterdam_pageTitle", "My Front Page")
// Retrieve the sideboxes and create the data to be presented.
uid := ctxt.Session().Values["user_id"].(int32)
uid := ctxt.CurrentUserId()
sboxes, err := database.AmGetSideboxes(uid)
if err != nil {
return "string", "Unable to retrieve sideboxes", err