Skip to content

Add 24-hour ad verification flow and remove dashboard skeleton - #12

Draft
SasukeXDev wants to merge 2 commits into
codex/fix-channel-loading-issues-and-remove-sources-d0mhcefrom
codex/remove-green-circle-section-and-add-24hr-verification
Draft

Add 24-hour ad verification flow and remove dashboard skeleton#12
SasukeXDev wants to merge 2 commits into
codex/fix-channel-loading-issues-and-remove-sources-d0mhcefrom
codex/remove-green-circle-section-and-add-24hr-verification

Conversation

@SasukeXDev

Copy link
Copy Markdown
Owner

Motivation

  • Replace the existing username/password-first experience with a lightweight ad verification flow that grants site access for 24 hours after the user completes a short verification step.
  • Keep admin credential login available for privileged actions while making normal access frictionless and suitable for production usage.

Description

  • Implemented server-side verification state using session['verified_at'] and a 24-hour window constant VERIFICATION_WINDOW_SECONDS in bot/server/stream_routes.py and added helper functions is_verified_session and get_verified_user to centralize enforcement.
  • Added a POST /verify-access route that sets session['user'] and session['verified_at'] so users can gain immediate access after the ad verification step, and updated POST /login and POST /logout to maintain verified_at lifecycle.
  • Replaced direct session checks across protected routes to call get_verified_user so expired or missing verification redirects to /login and admin-only endpoints still require the admin username.
  • Updated UI templates by replacing the old login page with a production-ready ad-verification UX at bot/server/template/login.html (ad open → countdown → unlock) and removed the skeleton/dashboard tile strip from bot/server/template/home.html to remove the green-circled placeholder.

Testing

  • Ran python -m compileall bot/server/stream_routes.py bot/server/render_template.py and the files compiled successfully with no syntax errors.
  • Performed automated checks of code changes (git status) and a manual review of route guards, redirect handling, template rendering, and logout cleanup paths which passed without issues.

Codex Task

@vercel

vercel Bot commented Mar 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hub360 Ready Ready Preview, Comment Mar 24, 2026 6:02pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant