Skip to content

Commit

Permalink
Merge pull request #51 from nileshkr022/main
Browse files Browse the repository at this point in the history
Password strength checker added at signup page
  • Loading branch information
yazdanhaider authored Oct 17, 2024
2 parents 4f017be + 7da688d commit fe6a104
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"react-datepicker": "^7.4.0",
"react-dom": "^18.3.1",
"react-icons": "^5.3.0",
"react-password-strength-bar": "^0.4.1",
"react-router-dom": "^6.27.0",
"styled-components": "^6.1.13"
},
Expand Down
4 changes: 4 additions & 0 deletions Frontend/src/components/SignUp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useState } from 'react';
import { motion } from 'framer-motion';
import { FaUser, FaEnvelope, FaLock, FaPhoneAlt } from 'react-icons/fa';
import { Link } from 'react-router-dom';
import PasswordStrengthBar from 'react-password-strength-bar'; // Importing PasswordStrengthBar

const SignUp = () => {
const [formData, setFormData] = useState({
Expand Down Expand Up @@ -88,6 +89,9 @@ const SignUp = () => {
required
/>
</div>

{/* Password Strength Checker */}
<PasswordStrengthBar password={formData.password} />
</div>
<div>
<label htmlFor="confirmPassword" className="block text-sm font-medium text-gray-700 mb-1">Confirm Password</label>
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fe6a104

Please sign in to comment.