Skip to content

Commit

Permalink
회원가입수정 마이페이지 수정 디테일 수정햇슴
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungEun-oto committed Jan 25, 2023
1 parent 3ee68ee commit 194c30d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,11 @@ public String runModify(UserVo vo, HttpServletRequest request, HttpSession Sessi
}

@RequestMapping(value = "/delete", method = RequestMethod.GET)
public String runDelete(HttpServletRequest request) {
public String runDelete(HttpServletRequest request,HttpSession session) {
String userid = request.getParameter("userid");
boolean result = userService.userDelete(userid);
System.out.println("delresult"+result);
session.invalidate();
return "redirect:/movie/main";
}

Expand Down
51 changes: 1 addition & 50 deletions spring-project/src/main/webapp/WEB-INF/views/mypage.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -59,56 +59,7 @@ $(document).ready(function() {
<li style="color:#fff; font-size:20px">등급점수:<span style="margin-left:250px; font-size:13px">10000</span></li>
</ul>
</div>
</div>
<div class="benefit-second col-lg-4">
<h5 style="margin-bottom:10px; text-align:center; margin-bottom:10px">자주 가는 극장</h5>
<table border="1px" style="margin-left:auto; margin-right:auto">
<tr>
<td style="float: left;
width: 109px;
height: 41px;
margin: 0 3px 2px 0;
padding: 2px;
border: 2px solid #999;"><a href="#">상암동</a></td>
<td style="float: left;
width: 109px;
height: 41px;
margin: 0 3px 2px 0;
padding: 2px;
border: 2px solid #999;"><a href="#">방구동</a></td>
</tr>
<tr>
<td style="float: left;
width: 109px;
height: 41px;
margin: 0 3px 2px 0;
padding: 2px;
border: 2px solid #999;"></td>
<td style="float: left;
width: 109px;
height: 41px;
margin: 0 3px 2px 0;
padding: 2px;
border: 2px solid #999;"></td>
</tr>
<tr>
<td style="float: left;
width: 109px;
height: 41px;
margin: 0 3px 2px 0;
padding: 2px;
border: 2px solid #999;"></td>
<td style="float: left;
width: 109px;
height: 41px;
margin: 0 3px 2px 0;
padding: 2px;
border: 2px solid #999;"></td>
</tr>
</table>



</div>
</div>
</div>
</div>
Expand Down
11 changes: 1 addition & 10 deletions spring-project/src/main/webapp/WEB-INF/views/mypage_detail.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ $(document).ready(function() {
console.log("등록버튼");
});
if ($("#userpw").val().trim() != $("#userpw2").val().trim()) {
alert("비밀번호가 일치하지 않습니다.");
return false;
}
// 삭제 버튼 클릭시
$("#btnDel").click(function() {
e.preventDefault();
Expand Down Expand Up @@ -79,14 +74,10 @@ $(document).ready(function() {
</li>
<li>
<div class="form-group row">
<div>
</div>
<div class="col-sm-12">
<label class="label">비밀번호</label>
<input type="password" value="${vo.userpw}"
id="userpw" name="userpw" placeholder="패스워드">
<input type="password"
id="userpw2" name="userpw2" placeholder="패스워드 확인">
</div>
<div class="col-sm-3">

Expand Down Expand Up @@ -120,7 +111,7 @@ $(document).ready(function() {
</li>
<li>
<label class="label">이메일&nbsp&nbsp&nbsp</label>
<input type="email" id="useremail" value="${useremail}" name="useremail" placeholder="email@gmail.com">
<input type="email" id="useremail" value="${vo.useremail}" name="useremail" placeholder="email@gmail.com">
</li>
<div class="main-border-button" style="padding-left:500px">
<button type="submit" id="btnMod">수정</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,20 @@ $(document).ready(function() {
if ($("#userid").val().trim() == "" ||
$("#username").val().trim() == "" ||
$("#email").val().trim() == "" ||
$("#useremail").val().trim() == "" ||
$("#userpw").val().trim() == "") {
alert("입력 항목을 확인해주세요.");
return false;
}
var test1 = $("#userpw").val().trim();
var test2 = $("#userpw2").val().trim();
console.log(test1);
console.log(test2);
if ($("#userpw").val().trim() != $("#userpw2").val().trim()) {
alert("비밀번호가 일치하지 않습니다.");
return false;
}
});
$("#btnCheckDup").click(function() {
Expand Down Expand Up @@ -45,7 +54,6 @@ $(document).ready(function() {
});
});
});
</script>
<div class="container">
<div class="row">
Expand Down Expand Up @@ -85,8 +93,8 @@ $(document).ready(function() {
<label class="label">비밀번호</label>
<input type="password"
id="userpw" name="userpw" placeholder="패스워드">
</div>
<div class="col-sm-3">
<input type="password"
id="userpw2" name="userpw2" placeholder="패스워드 확인">
</div>
</div>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
margin-left: 140px
}

#userid, #userpw, #userpw2, #name {
#userid, #userpw, #userpw2, #username ,#useremail {
padding-left:20px;
}
#btnregister {
Expand Down

0 comments on commit 194c30d

Please sign in to comment.