Skip to content

Commit

Permalink
Merge pull request #33 from GopinathVasan/Vcode
Browse files Browse the repository at this point in the history
Vcode
  • Loading branch information
GopinathVasan authored Aug 6, 2024
2 parents a08bfb7 + fff4ffa commit 26a2c21
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
6 changes: 3 additions & 3 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "/static/css/main.bd8d5d5d.css",
"main.js": "/static/js/main.288af479.js",
"main.js": "/static/js/main.66cc9ee8.js",
"static/media/2.jpg": "/static/media/2.d78c2409f1202f814238.jpg",
"static/media/3.jpg": "/static/media/3.03669f3a12083ce1d522.jpg",
"static/media/7.jpg": "/static/media/7.1a58d058420b1ffd1f1a.jpg",
Expand All @@ -16,10 +16,10 @@
"static/media/GV.jpg": "/static/media/GV.ec3ee30b31be7be602ae.jpg",
"index.html": "/index.html",
"main.bd8d5d5d.css.map": "/static/css/main.bd8d5d5d.css.map",
"main.288af479.js.map": "/static/js/main.288af479.js.map"
"main.66cc9ee8.js.map": "/static/js/main.66cc9ee8.js.map"
},
"entrypoints": [
"static/css/main.bd8d5d5d.css",
"static/js/main.288af479.js"
"static/js/main.66cc9ee8.js"
]
}
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer"/><title>Austin Partnership's</title><script defer="defer" src="/static/js/main.288af479.js"></script><link href="/static/css/main.bd8d5d5d.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer"/><title>Austin Partnership's</title><script defer="defer" src="/static/js/main.66cc9ee8.js"></script><link href="/static/css/main.bd8d5d5d.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
3 changes: 0 additions & 3 deletions build/static/js/main.288af479.js

This file was deleted.

3 changes: 3 additions & 0 deletions build/static/js/main.66cc9ee8.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions src/Pages/ClientLogin.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ const ClientLogin = () => {
const [isLoggedIn, setIsLoggedIn] = useState(false);
const navigate = useNavigate(); // Initialize useNavigate hook

const forgotPasswordAPI = 'http://127.0.0.1:8000/forgot/forgot_password';
const verifyOTPAPI = 'http://127.0.0.1:8000/forgot/verify_otp';
const resetPasswordAPI = 'http://127.0.0.1:8000/forgot/update_password';


const handleSubmit = async (e) => {
e.preventDefault();
Expand Down Expand Up @@ -66,12 +64,12 @@ const ClientLogin = () => {
e.preventDefault();
try {
const response = await axios.post('https://austin-partnership-back-end.onrender.com/forgot/forgot_password', {
email: forgotPasswordEmail,
email: forgotPasswordEmail,
phone_number: forgotPasswordPhonenumber
});
console.log('Response from forgot password API:', response.data);
if (response && response.data && response.data.message === "OTP code sent to your mobile phone") {
// Assuming the response indicates that OTP code is generated successfully
// Assuming the response indicates that OTP code is generated successfully OTP code sent to your mobile phone
setStep('otp');
setMessage("OTP generated successfully");
} else {
Expand Down

0 comments on commit 26a2c21

Please sign in to comment.