Skip to content

Display logged-in banner on homepage#2742

Merged
jelveh merged 3 commits into
mainfrom
auth-in-homepage
Mar 28, 2026
Merged

Display logged-in banner on homepage#2742
jelveh merged 3 commits into
mainfrom
auth-in-homepage

Conversation

@jelveh

@jelveh jelveh commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Pass auth_user from the router into PuterHomepageService and show a logged-in banner when a user is present. _default.js now includes auth_user in the svc_puterHomepage.send call. PuterHomepageService.send signature was updated to accept auth_user; the service stores logged_in_user, forwards it to generate_puter_page_html, and injects a styled "Logged in as " banner into the top of the page when available. This surfaces the current user on the GUI and exposes logged_in_user to page generation and addons.

jelveh and others added 3 commits March 27, 2026 16:43
Pass auth_user from the router into PuterHomepageService and show a logged-in banner when a user is present. _default.js now includes auth_user in the svc_puterHomepage.send call. PuterHomepageService.send signature was updated to accept auth_user; the service stores logged_in_user, forwards it to generate_puter_page_html, and injects a styled "Logged in as <username>" banner into the top of the page when available. This surfaces the current user on the GUI and exposes logged_in_user to page generation and addons.
@jelveh
jelveh marked this pull request as ready for review March 28, 2026 01:47
@jelveh
jelveh merged commit 92ac05e into main Mar 28, 2026
4 checks passed
@jelveh
jelveh deleted the auth-in-homepage branch May 1, 2026 20:10
junphine pushed a commit to junphine/puter that referenced this pull request May 21, 2026
* Display logged-in banner on homepage

Pass auth_user from the router into PuterHomepageService and show a logged-in banner when a user is present. _default.js now includes auth_user in the svc_puterHomepage.send call. PuterHomepageService.send signature was updated to accept auth_user; the service stores logged_in_user, forwards it to generate_puter_page_html, and injects a styled "Logged in as <username>" banner into the top of the page when available. This surfaces the current user on the GUI and exposes logged_in_user to page generation and addons.

* Include request path and logged in user in GUI params; remove banner

* fix: bad auth_user check for homepage

---------

Co-authored-by: Daniel Salazar <daniel.salazar@puter.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants