Add student profile page with password change

- New page /profile: shows name/email and password change form
- Uses authClient.changePassword (current + new + confirm)
- Student name in header is now a link to /profile

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-11 17:03:33 +05:00
parent 41871a1e8e
commit c445bfacad
3 changed files with 166 additions and 1 deletions
+3 -1
View File
@@ -44,7 +44,9 @@ export default async function StudentLayout({ children }: { children: React.Reac
{schoolName}
</Link>
<div className="flex items-center gap-4">
<span className="text-sm" style={{ color: "var(--muted-foreground)" }}>{session.user.name}</span>
<Link href="/profile" className="text-sm hover:underline" style={{ color: "var(--muted-foreground)" }}>
{session.user.name}
</Link>
<LogoutButton />
</div>
</header>