From e619245f1fa83a29a9ec553ef9017871bb5c27c0 Mon Sep 17 00:00:00 2001
From: l3wdfut4pwr <l3wdfut4pwr@gmail.com>
Date: Wed, 29 Apr 2026 02:07:46 +0300
Subject: add google auth

---
 src/components/settings/ChangePassword.tsx | 87 ++++++++++++++++--------------
 1 file changed, 46 insertions(+), 41 deletions(-)

(limited to 'src/components/settings/ChangePassword.tsx')

diff --git a/src/components/settings/ChangePassword.tsx b/src/components/settings/ChangePassword.tsx
index d437b5e..7721c85 100644
--- a/src/components/settings/ChangePassword.tsx
+++ b/src/components/settings/ChangePassword.tsx
@@ -21,8 +21,8 @@ export const ChangePasswordField = () => {
             return;
         }
 
-        if (newPassword.length < 6) {
-            setError('Пароль должен быть минимум 6 символов');
+        if (newPassword.length < 8) {
+            setError('Пароль должен быть минимум 8 символов');
             return;
         }
 
@@ -47,45 +47,50 @@ export const ChangePasswordField = () => {
     };
 
     return (
-        <div className="flex flex-col gap-[20px] w-[310px]">
-            <p className="text-light-violet font-medium">СМЕНА ПАРОЛЯ</p>
-
-            <div className="flex flex-col gap-[10px]">
-                <InputField
-                    placeholder="Текущий пароль"
-                    isPassword
-                    type="password"
-                    name="currentPassword"
-                    value={currentPassword}
-                    onChange={(e: any) => setCurrentPassword(e.target.value)}
-                />
-
-                <InputField
-                    placeholder="Новый пароль"
-                    isPassword
-                    type="password"
-                    name="newPassword"
-                    value={newPassword}
-                    onChange={(e: any) => setNewPassword(e.target.value)}
-                />
-
-                <InputField
-                    placeholder="Повторите пароль"
-                    isPassword
-                    type="password"
-                    name="confirmPassword"
-                    value={confirmPassword}
-                    onChange={(e: any) => setConfirmPassword(e.target.value)}
-                />
+        <>
+            <div className="flex flex-col gap-[20px] w-[310px]">
+                <p className="text-light-violet font-medium">СМЕНА ПАРОЛЯ</p>
+
+                <div className="flex flex-col gap-[10px]">
+                    <InputField
+                        placeholder="Текущий пароль"
+                        isPassword
+                        type="password"
+                        name="currentPassword"
+                        value={currentPassword}
+                        onChange={(e: any) =>
+                            setCurrentPassword(e.target.value)
+                        }
+                    />
+
+                    <InputField
+                        placeholder="Новый пароль"
+                        isPassword
+                        type="password"
+                        name="newPassword"
+                        value={newPassword}
+                        onChange={(e: any) => setNewPassword(e.target.value)}
+                    />
+
+                    <InputField
+                        placeholder="Повторите пароль"
+                        isPassword
+                        type="password"
+                        name="confirmPassword"
+                        value={confirmPassword}
+                        onChange={(e: any) =>
+                            setConfirmPassword(e.target.value)
+                        }
+                    />
+                </div>
+
+                {error && <p className="text-red text-sm">{error}</p>}
+
+                <Button onClick={handleSubmit} disabled={loading}>
+                    {loading ? 'Смена...' : 'Сменить'}
+                </Button>
             </div>
-
-            {error && <p className="text-red text-sm">{error}</p>}
-
-            <Button onClick={handleSubmit} disabled={loading}>
-                {loading ? 'Смена...' : 'Сменить'}
-            </Button>
-
-            <Separator className="bg-violet/30 h-[1px]" />
-        </div>
+            <Separator className="bg-violet/30 h-[1px] w-[900px]" />
+        </>
     );
 };
-- 
cgit v1.3-3-g829e

