forked from 77media/video-flow
修复问题
This commit is contained in:
parent
ab46209b25
commit
909c91572b
@ -29,7 +29,7 @@ export default function SignupPage() {
|
|||||||
if (password.length > 18) {
|
if (password.length > 18) {
|
||||||
return "Password cannot exceed 18 characters";
|
return "Password cannot exceed 18 characters";
|
||||||
}
|
}
|
||||||
if (!/^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d]{8,18}$/.test(password)) {
|
if (!/^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d!@#$%^*&]{8,18}$/.test(password)) {
|
||||||
return "Password must contain both letters and numbers";
|
return "Password must contain both letters and numbers";
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
@ -197,7 +197,7 @@ export default function SignupPage() {
|
|||||||
<div className="relative">
|
<div className="relative">
|
||||||
<input
|
<input
|
||||||
type={showPassword ? "text" : "password"}
|
type={showPassword ? "text" : "password"}
|
||||||
placeholder="8-18 characters, letters and numbers"
|
placeholder="8-18 characters, letters, numbers and !@#$%^*&"
|
||||||
value={password}
|
value={password}
|
||||||
onChange={handlePasswordChange}
|
onChange={handlePasswordChange}
|
||||||
required
|
required
|
||||||
@ -253,6 +253,9 @@ export default function SignupPage() {
|
|||||||
{confirmPassword && !confirmPasswordError && (
|
{confirmPassword && !confirmPasswordError && (
|
||||||
<p className="mt-1 text-sm text-green-400">✓ Passwords match</p>
|
<p className="mt-1 text-sm text-green-400">✓ Passwords match</p>
|
||||||
)}
|
)}
|
||||||
|
<p className="mt-1 text-xs text-gray-400">
|
||||||
|
Password requirements: 8-18 characters, must contain letters and numbers, can include !@#$%^*&
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@ -218,9 +218,9 @@ export function TopBar({
|
|||||||
variant="ghost"
|
variant="ghost"
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => router.push("/create")}
|
onClick={() => router.push("/create")}
|
||||||
className="bg-white text-black rounded-full hover:bg-gray-100"
|
className="bg-white text-black rounded-full hover:scale-105"
|
||||||
>
|
>
|
||||||
Go Start
|
Go Started
|
||||||
</Button>
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@ -33,7 +33,7 @@ export default function Login() {
|
|||||||
if (password.length > 18) {
|
if (password.length > 18) {
|
||||||
return "Password cannot exceed 18 characters";
|
return "Password cannot exceed 18 characters";
|
||||||
}
|
}
|
||||||
if (!/^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d]{8,18}$/.test(password)) {
|
if (!/^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d!@#$%^*&]{8,18}$/.test(password)) {
|
||||||
return "Password must contain both letters and numbers";
|
return "Password must contain both letters and numbers";
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
@ -177,7 +177,7 @@ export default function Login() {
|
|||||||
<label className="form-label">Password</label>
|
<label className="form-label">Password</label>
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
<input
|
<input
|
||||||
placeholder="8-18 characters, letters and numbers"
|
placeholder="8-18 characters, letters, numbers and !@#$%^*&"
|
||||||
required
|
required
|
||||||
className={`form-control pr-10 ${
|
className={`form-control pr-10 ${
|
||||||
passwordError ? "border-red-500/50" : ""
|
passwordError ? "border-red-500/50" : ""
|
||||||
|
|||||||
@ -26,7 +26,6 @@
|
|||||||
.auth-container {
|
.auth-container {
|
||||||
padding: 40px;
|
padding: 40px;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
max-width: 400px;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
@ -498,4 +497,4 @@
|
|||||||
top: max(1rem, calc(env(safe-area-inset-top) + 0.5rem));
|
top: max(1rem, calc(env(safe-area-inset-top) + 0.5rem));
|
||||||
left: max(1rem, calc(env(safe-area-inset-left) + 0.5rem));
|
left: max(1rem, calc(env(safe-area-inset-left) + 0.5rem));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user