-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrestore.aspx.cs
More file actions
113 lines (101 loc) · 3.04 KB
/
restore.aspx.cs
File metadata and controls
113 lines (101 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class restore : System.Web.UI.Page
{
static bool isAuthen = false;
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnAuthenticateF_Click(object sender, EventArgs e)
{
if (txtIdF.Text.Length <= 0)
{
lblResultF.Text = "사용자Id를 입력해 주세요.";
return;
}
if (txtNameF.Text.Length <= 0)
{
lblResultF.Text = "사용자 이름을 입력해 주세요.";
return;
}
if ((new MemberDao()).AuthenticateRestore(txtIdF.Text, txtNameF.Text))
{
isAuthen = true;
lblResultF.Text = "본인 인증에 성공하였습니다.";
}
else
lblResultF.Text = "본인 인증에 실패하였습니다.";
}
protected void btnCancelF_Click(object sender, EventArgs e)
{
Response.Redirect("mymainpage.aspx");
}
protected void SetRestoreF_Click(object sender, EventArgs e)
{
if (!isAuthen)
{
lblResultC.Text = "먼저 본인 인증을 실시해 주세요.";
return;
}
if (txtPw1F.Text.Length <= 0)
{
lblpassCheckF.Text = "비밀번호를 입력해 주세요";
return;
}
if (txtPw2F.Text.Length <= 0)
{
lblpassCheckF.Text = "비밀번호를 입력해 주세요";
return;
}
(new MemberDao()).UpdateGradeF(txtIdC.Text);
Response.Redirect("login.aspx");
}
protected void btnAuthenticate_Click(object sender, EventArgs e)
{
if (txtIdC.Text.Length <= 0)
{
lblResultC.Text = "사용자Id를 입력해 주세요.";
return;
}
if (txtNameC.Text.Length <= 0)
{
lblResultC.Text = "사용자 이름을 입력해 주세요.";
return;
}
if ((new MemberDao()).AuthenticateRestore(txtIdC.Text, txtNameC.Text))
{
isAuthen = true;
lblResultC.Text = "본인 인증에 성공하였습니다.";
}
else
lblResultC.Text = "본인 인증에 실패하였습니다.";
}
protected void btnCancel_Click(object sender, EventArgs e)
{
Response.Redirect("mymainpage.aspx");
}
protected void SetRestore_Click(object sender, EventArgs e)
{
if (!isAuthen)
{
lblResultC.Text = "먼저 본인 인증을 실시해 주세요.";
return;
}
if (txtPw1C.Text.Length <= 0)
{
lblpassCheckC.Text = "비밀번호를 입력해 주세요";
return;
}
if (txtPw2C.Text.Length <= 0)
{
lblpassCheckC.Text = "비밀번호를 입력해 주세요";
return;
}
(new MemberDao()).UpdateGradeC(txtIdC.Text);
Response.Redirect("login.aspx");
}
}