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

console.log 삭제

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