Single-tenant app: every user is the admin. The previous pattern match on conn.assigns.current_scope didn't work for first-time logins because the scope isn't assigned to the conn yet at that point, causing the fallback to ~p"/" instead of ~p"/admin". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| components | ||
| controllers | ||
| live | ||
| plugs | ||
| admin_layout_hook.ex | ||
| cart_hook.ex | ||
| endpoint.ex | ||
| gettext.ex | ||
| router.ex | ||
| telemetry.ex | ||
| theme_hook.ex | ||
| user_auth.ex | ||