Skip to content

Commit

Permalink
last update
Browse files Browse the repository at this point in the history
  • Loading branch information
OZZYTA committed Mar 21, 2023
1 parent d064d29 commit 0ed90c5
Show file tree
Hide file tree
Showing 8 changed files with 28,773 additions and 13 deletions.
2 changes: 1 addition & 1 deletion back/utils/sendEmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const sendEmail = async options =>{
port: 587,
auth: {
user: "ozzyta@outlook.com",
pass: "lhqyxlcozvmnrlkw"
pass: "Lancelot89*"
}
});
const mensaje={
Expand Down
5 changes: 3 additions & 2 deletions front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"redux-devtools-extension": "^2.13.9",
"redux-thunk": "^2.4.1",
"web-vitals": "^2.1.4",
"webpack": "4.29.6"
"webpack": "4.29.6",
"webpack-dev-server": "3.2.1"
},
"scripts": {
"start": "react-scripts start",
Expand All @@ -52,5 +53,5 @@
"last 1 safari version"
]
},
"proxy": "https://localhost:4000"
"proxy": "http://localhost:4000/"
}
3 changes: 1 addition & 2 deletions front/src/components/user/NewPassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export const NewPassword = () => {
alert.success('Contraseña reiniciada correctamente')
navigate('/login')
}
// eslint-disable-next-line
}, [dispatch, alert, error, success])
}, [dispatch, alert, error, success, navigate])

const submitHandler = (e) => {
e.preventDefault();
Expand Down
3 changes: 1 addition & 2 deletions front/src/components/user/Register.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export const Register = () => {
if (error) {
dispatch(clearErrors)
}
// eslint-disable-next-line
}, [dispatch, isAuthenticated, error, alert])
}, [dispatch, isAuthenticated, error, alert, navigate])

const submitHandler = (e) =>{
e.preventDefault();
Expand Down
3 changes: 1 addition & 2 deletions front/src/components/user/UpdatePassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ export const UpdatePassword = () => {
type: UPDATE_PASSWORD_RESET
})
}
// eslint-disable-next-line
},[dispatch, alert, error, isUpdated])
},[dispatch, alert, error, isUpdated, navigate])

const submitHandler= (e)=>{
e.preventDefault();
Expand Down
3 changes: 1 addition & 2 deletions front/src/components/user/UpdateProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ export const UpdateProfile = () => {
type: UPDATE_PROFILE_RESET
})
}
// eslint-disable-next-line
}, [dispatch, alert, error, isUpdated])
}, [dispatch, alert, error, isUpdated, user, navigate])

const submitHandler = (e) => {
e.preventDefault();
Expand Down
Loading

0 comments on commit 0ed90c5

Please sign in to comment.