-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForgotPass.aspx.cs
47 lines (41 loc) · 1.23 KB
/
ForgotPass.aspx.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class ForgotPass : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnCheck_Click(object sender, EventArgs e)
{
LUT_Asset_Users ui = new LUT_Asset_Users() { UserID = txtUserID.Text };
UserInfoRepository repo = new UserInfoRepository();
var resultU = repo.CheckUser(ui);
if (resultU != null)
{
SecurityQ.Text = resultU; //way to print on screen
}
}
protected void btnLogIn_Click(object sender, EventArgs e)
{
Response.Redirect("LogInP.aspx");
}
protected void btnCA_Click(object sender, EventArgs e)
{
LUT_Asset_Users ui = new LUT_Asset_Users() { SecurityA = txtSecurityA.Text, UserID = txtUserID.Text };
UserInfoRepository repo = new UserInfoRepository();
var resultA = repo.CheckAnswer(ui);
if (resultA == null)
{
/*Session["UserID"] = ui.UserID;*/
Response.Write("Not Valid Answer");
}
else
{
txtPassword.Text = resultA;
}
}
}