protect against sql injection, xss, csrf

This commit is contained in:
jackiettran
2025-09-16 12:27:15 -04:00
parent ce0b7bd0cc
commit a9fa579b6d
10 changed files with 1311 additions and 103 deletions

View File

@@ -1,5 +1,6 @@
import React, { useState, useEffect, useRef } from "react";
import { useAuth } from "../contexts/AuthContext";
import PasswordStrengthMeter from "./PasswordStrengthMeter";
interface AuthModalProps {
show: boolean;
@@ -198,6 +199,9 @@ const AuthModal: React.FC<AuthModalProps> = ({
onChange={(e) => setPassword(e.target.value)}
required
/>
{mode === "signup" && (
<PasswordStrengthMeter password={password} />
)}
</div>
<button