diff --git a/app/[locale]/(app)/layout.tsx b/app/[locale]/(app)/layout.tsx
index b9d5082..55b0824 100644
--- a/app/[locale]/(app)/layout.tsx
+++ b/app/[locale]/(app)/layout.tsx
@@ -50,10 +50,10 @@ export default async function AppLayout({
return null;
}
- const { user, role } = session;
+ const { user, role, fullName } = session;
return (
-
+
{children}
);
diff --git a/app/[locale]/(auth)/sign-in/sign-in-form.tsx b/app/[locale]/(auth)/sign-in/sign-in-form.tsx
index 0277116..745eeba 100644
--- a/app/[locale]/(auth)/sign-in/sign-in-form.tsx
+++ b/app/[locale]/(auth)/sign-in/sign-in-form.tsx
@@ -14,10 +14,11 @@
* side or server-side.
*/
-import { useActionState, useEffect } from "react";
+import { useActionState, useEffect, useState } from "react";
import { useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
import { useTranslations } from "next-intl";
+import { Eye, EyeOff } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
@@ -48,6 +49,10 @@ export function SignInForm() {
const { errors: fieldErrors } = form.formState;
+ // Password reveal toggle — shared clinic PCs + VN keyboards make mistyped
+ // passwords common; letting the doctor verify what they typed cuts retries.
+ const [showPassword, setShowPassword] = useState(false);
+
// Sync server-returned fieldErrors into RHF so the inline error UI is
// consistent regardless of where the error originated.
useEffect(() => {
@@ -83,6 +88,7 @@ export function SignInForm() {
-
+
+
+
+
{fieldErrors.password && (
{fieldErrors.password.message}
@@ -125,12 +144,9 @@ export function SignInForm() {
)}
{/* Submit */}
-