Commit fe46675e authored by Kim, Subin's avatar Kim, Subin
Browse files

console.log 삭제

parent f3271b71
...@@ -30,7 +30,6 @@ const LoginForm = () => { ...@@ -30,7 +30,6 @@ const LoginForm = () => {
})} })}
onSubmit={async (values, { setSubmitting, resetForm }) => { onSubmit={async (values, { setSubmitting, resetForm }) => {
try { try {
console.log('login values', values)
setError("") setError("")
const result = await login(values) const result = await login(values)
if (result) { if (result) {
......
...@@ -49,7 +49,6 @@ const SignupForm = () => { ...@@ -49,7 +49,6 @@ const SignupForm = () => {
try { try {
setError("") setError("")
const result = await authApi.signup(values) const result = await authApi.signup(values)
// console.log('회원가입 요청 후 result 확인', result, '|', result.status)
if (result.status === 201) { if (result.status === 201) {
alert("회원가입이 완료되었습니다.") alert("회원가입이 완료되었습니다.")
setSuccess(true) setSuccess(true)
......
...@@ -106,7 +106,6 @@ const StudyPlanEditForm = () => { ...@@ -106,7 +106,6 @@ const StudyPlanEditForm = () => {
return ( return (
<div className="pt-5"> <div className="pt-5">
{console.log("studyplan---",studyplan)}
<select className={`form-select mb-4 ${styles.selectInput}`} name="selected" aria-label="Choose subject" onChange={handleChange}> <select className={`form-select mb-4 ${styles.selectInput}`} name="selected" aria-label="Choose subject" onChange={handleChange}>
{subjectList.length !== 0 ? subjectList.map((subject, idx) => { {subjectList.length !== 0 ? subjectList.map((subject, idx) => {
if (idx === 0) return <> if (idx === 0) return <>
......
...@@ -20,7 +20,6 @@ const AuthProvider = ({ children }) => { ...@@ -20,7 +20,6 @@ const AuthProvider = ({ children }) => {
const { pathname } = useLocation() const { pathname } = useLocation()
const getUser = async () => { const getUser = async () => {
try { try {
console.log("context getUser")
const resUser = await authApi.getUser(); const resUser = await authApi.getUser();
setUser({ ...user, ...resUser }) setUser({ ...user, ...resUser })
if (resUser.role === "admin") history.push("/admin") if (resUser.role === "admin") history.push("/admin")
......
...@@ -17,7 +17,6 @@ const getUser = async (req, res) => { ...@@ -17,7 +17,6 @@ const getUser = async (req, res) => {
} }
const signup = async (req, res) => { const signup = async (req, res) => {
console.log('server/signup req.body', req.body)
const { userId, password, userName, userStudNum } = req.body; const { userId, password, userName, userStudNum } = req.body;
try { try {
const findId = await User.findOne({ where: { userID: userId } }); const findId = await User.findOne({ where: { userID: userId } });
...@@ -39,7 +38,6 @@ const signup = async (req, res) => { ...@@ -39,7 +38,6 @@ const signup = async (req, res) => {
} }
const login = async (req, res) => { const login = async (req, res) => {
console.log('server/login req.body', req.body)
const { userId, password } = req.body; const { userId, password } = req.body;
try { try {
const user = await User.scope("withPassword").findOne({ where: { userID: userId } }); const user = await User.scope("withPassword").findOne({ where: { userID: userId } });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment